chore: ignore websocket errors
This commit is contained in:
parent
5dd85db476
commit
01c2d97912
1 changed files with 1 additions and 3 deletions
|
|
@ -64,9 +64,7 @@ func (h *SocketHub) ServeWebsocket(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
defer conn.Close(websocket.StatusInternalError, "")
|
||||
|
||||
if err := h.subscribe(r.Context(), conn); err != nil {
|
||||
log.TRACE.Println("web socket upgrade:", err)
|
||||
}
|
||||
_ = h.subscribe(r.Context(), conn)
|
||||
}
|
||||
|
||||
func (h *SocketHub) subscribe(ctx context.Context, conn *websocket.Conn) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue