Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djherbis/socket
/ Join
Method
Join
socket.go:50–55 ·
view source on GitHub ↗
(room string)
Source
from the content-addressed store, hash-verified
48
}
49
50
func
(s *socket) Join(room string) {
51
s.mu.Lock()
52
defer
s.mu.Unlock()
53
s.rooms[room] =
struct
{}{}
54
s.ns.rooms.Join(room, s)
55
}
56
57
func
(s *socket) Leave(room string) {
58
s.mu.Lock()
Callers
nothing calls this directly
Calls
1
Join
Method · 0.65
Tested by
no test coverage detected