classifyCloseCode
classifyCloseCode(
code):CloseCodeClassification
Defined in: packages/connectors/src/close-code.ts:41
Map a WebSocket close code to the reconnect semantics used by the client connector.
Only 1000 and 1008 carry meaning beyond “the transport went away”. Every other number classifies as unclean but retryable.
Parameters
Section titled “Parameters”number