Skip to main content

WS_SUBPROTOCOL

Constant WS_SUBPROTOCOL 

Source
pub const WS_SUBPROTOCOL: &str = "feldera-ws-v1";
Expand description

WebSocket subprotocol the web console offers on every browser WebSocket handshake. Browsers require the server to echo one of the offered subprotocols, so this gives the manager a stable value to echo back. It marks the handshake, not the endpoint (the URL path already identifies that), so it is shared across all WebSocket endpoints.