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

Method changeConnStatus

nats.go:6578–6584  ·  view source on GitHub ↗

changeConnStatus changes connections status and sends events to all listeners. Lock should be held entering.

(status Status)

Source from the content-addressed store, hash-verified

6576// changeConnStatus changes connections status and sends events
6577// to all listeners. Lock should be held entering.
6578func (nc *Conn) changeConnStatus(status Status) {
6579 if nc == nil {
6580 return
6581 }
6582 nc.sendStatusEvent(status)
6583 nc.status = status
6584}
6585
6586// NkeyOptionFromSeed will load an nkey pair from a seed file.
6587// It will return the NKey Option and will handle

Callers 9

ForceReconnectMethod · 0.95
processConnectInitMethod · 0.95
connectMethod · 0.95
sendConnectMethod · 0.95
doReconnectMethod · 0.95
processOpErrMethod · 0.95
closeMethod · 0.95
drainConnectionMethod · 0.95
DrainMethod · 0.95

Calls 1

sendStatusEventMethod · 0.95

Tested by

no test coverage detected