From 3ff3320c2a1756a3691521efc290b4701575147c Mon Sep 17 00:00:00 2001 From: stevenscott89 <42449819+stevenscott89@users.noreply.github.com> Date: Thu, 16 Aug 2018 15:18:03 -0700 Subject: [PATCH] Improve server subprotocol documentation Partial fix for 404. --- server.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index aee2705..4834c38 100644 --- a/server.go +++ b/server.go @@ -34,9 +34,11 @@ type Upgrader struct { ReadBufferSize, WriteBufferSize int // Subprotocols specifies the server's supported protocols in order of - // preference. If this field is set, then the Upgrade method negotiates a + // preference. If this field is not nil, then the Upgrade method negotiates a // subprotocol by selecting the first match in this list with a protocol - // requested by the client. + // requested by the client. If there's no match, then no protocol is + // negotiated (the Sec-Websocket-Protocol header is not included in the + // handshake response). Subprotocols []string // Error specifies the function for generating HTTP error responses. If Error