diff --git a/utils/ws/op.go b/utils/ws/op.go index 278e1c2..97327ce 100644 --- a/utils/ws/op.go +++ b/utils/ws/op.go @@ -18,7 +18,7 @@ type OpCode int type CloseEvent struct { // Err is the underlying error. Err error - // Code is the websocket close code, if any. + // Code is the websocket close code, if any. It is -1 otherwise. Code int }