MCPcopy 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
118func (s *Session) closeWS() {
119 if s.proto == WEBSOCK {
120 s.ws.Close()
121 }
122}
123
124func (s *Session) writePkt(pkt *ServerComMessage) error {
125 data, _ := json.Marshal(pkt)

Callers 2

readLoopMethod · 0.95
writeLoopMethod · 0.95

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected