diff --git a/frame.go b/frame.go index f8f5ec54e970dd239ad1131d2c2bc5327459d5c7..a12438ce387bf632b92929c58e3a15999fc9cd44 100644 --- a/frame.go +++ b/frame.go @@ -204,8 +204,8 @@ type StatusCode int // These codes were retrieved from: // https://www.iana.org/assignments/websocket/websocket.xhtml#close-code-number // -// In addition to the defined constants, 4000-4999 are reserved for arbitrary -// use by applications. +// The defined constants only represent the status codes registered with IANA. +// The 4000-4999 range of status codes is reserved for arbitrary use by applications. const ( StatusNormalClosure StatusCode = 1000 StatusGoingAway StatusCode = 1001