-
Notifications
You must be signed in to change notification settings - Fork 63
Description
From the Websocket RFC6455:
For client side:
|Sec-WebSocket-Protocol| header field, with a list of values indicating which protocols the client would like to speak, ordered by preference.
And for server side:
Either a single value representing the subprotocol the server is ready to use or null. The value chosen MUST be derived from the client's handshake, specifically by selecting one of the values from the |Sec-WebSocket-Protocol| field that the server is willing to use for this connection (if any).
So if the client provides a few options for subprotocol. The server should choose the first one it supports.
Right now, if client provides a few options, Nexus choose the first one it supports (and not the first one from the client). And first in list is json.
So if the client sends Sec-WebSocket-Protocol: wamp.2.cbor, wamp.2,json → Nexus will choose json and not the cbor