Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/daodst/chat
/ closeWS
Method
closeWS
server/session.go:118–122 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
116
}
117
118
func
(s *Session) closeWS() {
119
if
s.proto == WEBSOCK {
120
s.ws.Close()
121
}
122
}
123
124
func
(s *Session) writePkt(pkt *ServerComMessage) error {
125
data, _ := json.Marshal(pkt)
Callers
2
readLoop
Method · 0.95
writeLoop
Method · 0.95
Calls
1
Close
Method · 0.65
Tested by
no test coverage detected