websocket
websocket copied to clipboard
Decode/Encode unaware of Selected Sub-Protocol
Although the sub-protocol is negotiated with with the client, there is no way to know what that is as this is only available in Session#getNegotiatedSubprotocol() which is not available to Decoder or Encoder. The use-case is to have subtly different encoding/decoding based on sub-protocol.