From f8cc5a87320ad00c1b328f9cc9f802ad02040da0 Mon Sep 17 00:00:00 2001 From: Anmol Sethi <hi@nhooyr.io> Date: Fri, 27 Sep 2019 15:37:23 -0500 Subject: [PATCH] Improve status code godoc further --- frame.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frame.go b/frame.go index f8f5ec5..a12438c 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 -- GitLab