We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ed622c commit 3ff3320Copy full SHA for 3ff3320
server.go
@@ -34,9 +34,11 @@ type Upgrader struct {
34
ReadBufferSize, WriteBufferSize int
35
36
// Subprotocols specifies the server's supported protocols in order of
37
- // 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
38
// subprotocol by selecting the first match in this list with a protocol
39
- // requested by the client.
+ // requested by the client. If there's no match, then no protocol is
40
+ // negotiated (the Sec-Websocket-Protocol header is not included in the
41
+ // handshake response).
42
Subprotocols []string
43
44
// Error specifies the function for generating HTTP error responses. If Error
0 commit comments