MCPcopy Create free account
hub / github.com/djherbis/socket / removeSocket

Method removeSocket

namespace.go:98–108  ·  view source on GitHub ↗
(so Socket)

Source from the content-addressed store, hash-verified

96}
97
98func (ns *namespace) removeSocket(so Socket) {
99 ns.mu.RLock()
100 fn := ns.onDisconnect
101 ns.mu.RUnlock()
102
103 ns.global.Leave(so)
104
105 if fn != nil {
106 fn(so)
107 }
108}

Callers 1

ServeHTTPMethod · 0.80

Calls 1

LeaveMethod · 0.65

Tested by

no test coverage detected