1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 09:12:53 +00:00

ws: Clarify CloseEvent.Code

This commit is contained in:
diamondburned 2022-04-11 21:14:07 -07:00
parent 4108d10b44
commit c9a96f671a
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -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
}