Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
98
func
(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
ServeHTTP
Method · 0.80
Calls
1
Leave
Method · 0.65
Tested by
no test coverage detected