Skip to content

Commit

Permalink
Add log for ws check (#8370)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson committed May 7, 2024
1 parent 12f0efe commit a236c82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions comms/discovery/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,10 +741,12 @@ func (ss *ChatServer) doWebsocketTest() error {
}

wsUrl = wsUrl.JoinPath("/comms/debug/ws")
slog.Info("testing ws connection", wsUrl)

ctx := context.Background()
con, _, _, err := ws.Dial(ctx, wsUrl.String())
if err != nil {
slog.Info("ws connection error "+err.Error(), wsUrl)
return err
}
return con.Close()
Expand Down

0 comments on commit a236c82

Please sign in to comment.