cgmartin / clj-wamp

WebSocket Application Messaging Protocol (WAMP) for Clojure and HTTP Kit
http://cljwamp.us
Eclipse Public License 1.0
54 stars 12 forks source link

Do subprotocol validation during handshake #5

Closed cgmartin closed 11 years ago

cgmartin commented 11 years ago

See http://tools.ietf.org/html/rfc6455#section-1.3

Additional header fields are used to select options in the WebSocket
Protocol.  Typical options available in this version are the
subprotocol selector (|Sec-WebSocket-Protocol|), list of extensions
support by the client (|Sec-WebSocket-Extensions|), |Origin| header
field, etc.  The |Sec-WebSocket-Protocol| request-header field can be
used to indicate what subprotocols (application-level protocols
layered over the WebSocket Protocol) are acceptable to the client.
The server selects one or none of the acceptable protocols and echoes
that value in its handshake to indicate that it has selected that
protocol.

Sec-WebSocket-Protocol: chat
cgmartin commented 11 years ago

Implemented in 1.0.0-beta2