mirror of
https://github.com/aljazceru/khatru.git
synced 2026-02-11 07:54:20 +01:00
do not log on normal websocket close.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user