Skip to content

Commit

Permalink
Improve server subprotocol documentation
Browse files Browse the repository at this point in the history
Partial fix for 404.
  • Loading branch information
stevenscott89 authored and garyburd committed Aug 16, 2018
1 parent 5ed622c commit 3ff3320
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server.go
Expand Up @@ -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
Expand Down

0 comments on commit 3ff3320

Please sign in to comment.