File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,11 @@ type Upgrader struct {
34
34
ReadBufferSize , WriteBufferSize int
35
35
36
36
// Subprotocols specifies the server's supported protocols in order of
37
- // preference. If this field is set , then the Upgrade method negotiates a
37
+ // preference. If this field is not nil , then the Upgrade method negotiates a
38
38
// subprotocol by selecting the first match in this list with a protocol
39
- // requested by the client.
39
+ // 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).
40
42
Subprotocols []string
41
43
42
44
// Error specifies the function for generating HTTP error responses. If Error
You can’t perform that action at this time.
0 commit comments