View definition

(Upgrader).Subprotocols

Defined in github.com/gorilla/websocket/server.go

Description

Subprotocols specifies the server's supported protocols in order of preference. If this field is set, then the Upgrade method negotiates a subprotocol by selecting the first match in this list with a protocol requested by the client.

Subprotocols is referenced in 14 repositories

github.com/gorilla/websocket github.com/exis-io/node github.com/jcelliott/turnpike

...