We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3826f1b commit cada2b5Copy full SHA for cada2b5
1 file changed
pkg/cloud/gateway/gateway.go
@@ -367,8 +367,11 @@ func (s *LocalGatewayService) handleWebsocketRequest(socketName string) func(ctx
367
// Need to create a unique ID for this connection and store in a central location
368
// This will allow connected clients to message eachother and broadcast to all clients as well
369
// We'll only read new messages on this connection here, writing will be done by a separate runtime API
370
+ // Won't print errors that arise if the socket is closed and are "going away" or "no status" errors
371
_, message, err := ws.ReadMessage()
- if err != nil {
372
+ if err != nil && websocket.IsCloseError(err, 1001, 1005) {
373
+ break
374
+ } else if err != nil {
375
log.Println("read:", err)
376
break
377
}
0 commit comments