do not log on normal websocket close.

This commit is contained in:
fiatjaf 2023-11-19 08:30:06 -03:00
parent 5db3b5fb8b
commit 591b49fe73
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -75,6 +75,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
if err != nil {
if websocket.IsUnexpectedCloseError(
err,
websocket.CloseNormalClosure, // 1000
websocket.CloseGoingAway, // 1001
websocket.CloseNoStatusReceived, // 1005
websocket.CloseAbnormalClosure, // 1006