mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-30 10:43:30 +00:00
ws: Clarify CloseEvent.Code
This commit is contained in:
parent
4108d10b44
commit
c9a96f671a
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue