Skip to main content

Module close_code

Module close_code 

Expand description

Session close codes: the WebTransport session close, the WebSocket close frame.

Constantsยง

FORBIDDEN
A 403 refusal: the provider forbade the caller, or a re-authentication named a different principal. The {id: 0, err} frame before the close says which.
PROTOCOL
The control stream broke protocol: first frame not Init, a frame that does not decode, or a frame over the size limit.
SERVER_ERROR
The AuthProvider could not decide (a 5xx: its key server is down). Not a verdict on the credentials: retry later, do not sign out.
TOO_MANY_SESSIONS
Too many open sessions for this principal.
UNAUTHENTICATED
Authentication was refused (401), or no Init arrived in time. A refusal is preceded by an {id: 0, err} frame; a timeout is not.