Skip to main content

WS_AUTH_SUBPROTOCOL_PREFIX

Constant WS_AUTH_SUBPROTOCOL_PREFIX 

Source
pub const WS_AUTH_SUBPROTOCOL_PREFIX: &'static str;
Expand description

The prefix the JWE rides behind in a WebSocket handshake.

The subprotocol counterpart of PROXY_AUTH_HEADER. A handshake carries the token here because Sec-WebSocket-Protocol is the only field the browser WebSocket constructor lets a client set.