Skip to main content

Module handshake

Module handshake 

Source
Expand description

Opening handshake helpers (RFC 6455 §4).

Functions§

accept_key
Computes Sec-WebSocket-Accept for a Sec-WebSocket-Key.
header_has_token
true if a comma-separated header value contains token (case-insensitive).
valid_client_key
Validates a 16-byte base64 Sec-WebSocket-Key.