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

Method wsClose

ws.go:706–713  ·  ws.go::Conn.wsClose
()

Source from the content-addressed store, hash-verified

704}
705
706func (nc *Conn) wsClose() {
707 nc.mu.Lock()
708 defer nc.mu.Unlock()
709 if !nc.ws {
710 return
711 }
712 nc.wsEnqueueCloseMsgLocked(wsCloseStatusNormalClosure, _EMPTY_)
713}
714
715func (nc *Conn) wsEnqueueCloseMsg(needsLock bool, status int, payload string) {
716 // In some low-level unit tests it will happen...

Callers 1

CloseMethod · 0.95

Calls 1

Tested by

no test coverage detected