MCPcopy
hub / github.com/nats-io/nats.go / ClosedHandler

Function ClosedHandler

nats.go:1312–1317  ·  view source on GitHub ↗

ClosedHandler is an Option to set the closed handler.

(cb ConnHandler)

Source from the content-addressed store, hash-verified

1310
1311// ClosedHandler is an Option to set the closed handler.
1312func ClosedHandler(cb ConnHandler) Option {
1313 return func(o *Options) error {
1314 o.ClosedCB = cb
1315 return nil
1316 }
1317}
1318
1319// DiscoveredServersHandler is an Option to set the new servers handler.
1320func DiscoveredServersHandler(cb ConnHandler) Option {

Callers 1

Calls

no outgoing calls

Tested by 1