einaros/ws — Issue #29: Implement proper sub-protocol support
Author: kanaka
Created: 2012-02-23 16:29:45+00:00
State: open

The protocol header can include multiple sub-protocol values in the request. In order to properly support sub-protocols, there needs to be some way for the server to select the protocol from the list that it supports (because the response needs to have only one).

This may require a separate callback handler so that the server using 'ws' has the opportunity to select the one it wants to use before the connection is fully established (i.e. on-connection is too).