Expand description
Accept loop and WebSocket handshake. Sessions live in session.
This module refuses extra connections instead of queueing them, so a caller learns immediately and the accept loop keeps draining.
Structsยง
- OWP/WebSocket server adapter.
Constantsยง
- Budget for a client to complete the TLS handshake, when TLS is configured. Without a limit, a peer that opens TCP and never speaks TLS would hold a connection permit forever.
Functionsยง
- error_
response ๐A handshake rejection withstatusand a short reason line. - handshake_
check ๐Vets one WebSocket handshake: theowpsubprotocol, then theOrigin.