MCPcopy Index your code
hub / github.com/gotify/server / printWebSocketError

Function printWebSocketError

api/stream/client.go:110–119  ·  view source on GitHub ↗
(prefix string, err error)

Source from the content-addressed store, hash-verified

108}
109
110func printWebSocketError(prefix string, err error) {
111 closeError, ok := err.(*websocket.CloseError)
112
113 if ok && closeError != nil && (closeError.Code == 1000 || closeError.Code == 1001) {
114 // normal closure
115 return
116 }
117
118 fmt.Println("WebSocket:", prefix, err)
119}

Callers 2

startReadingMethod · 0.85
startWriteHandlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…