Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkg/cloud/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,11 @@ func (s *LocalGatewayService) handleWebsocketRequest(socketName string) func(ctx
// Need to create a unique ID for this connection and store in a central location
// This will allow connected clients to message eachother and broadcast to all clients as well
// We'll only read new messages on this connection here, writing will be done by a separate runtime API
// Won't print errors that arise if the socket is closed and are "going away" or "no status" errors
_, message, err := ws.ReadMessage()
if err != nil {
if err != nil && websocket.IsCloseError(err, 1001, 1005) {
break
} else if err != nil {
log.Println("read:", err)
break
}
Expand Down
Loading