Expand description
Websocket utilities
Enums§
- Upgrade
Error - Websocket upgrade errors
Constants§
- MAX_
BASE64_ KEY_ LEN - MAX_
BASE64_ KEY_ RESPONSE_ LEN - NONCE_
LEN - UPGRADE_
REQUEST_ HEADERS_ LEN - UPGRADE_
RESPONSE_ HEADERS_ LEN
Functions§
- is_
upgrade_ accepted - Check if the response is a Websocket upgrade response and if the upgrade was accepted
- is_
upgrade_ request - Check if the request is a Websocket upgrade request
- sec_
key_ response - Compute the response for a given
Sec-WebSocket-Key - upgrade_
request_ headers - Return ready-to-use WS upgrade request headers
- upgrade_
response_ headers - Return ready-to-use WS upgrade response headers