Skip to content
Merged
Changes from 2 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, i.e. "websocket: close 1005 (no status)"
_, message, err := ws.ReadMessage()
if err != nil {
if err != nil && strings.Contains(err.Error(), "no status") {
break
} else if err != nil {
log.Println("read:", err)
break
}
Expand Down