Skip to content

classifyCloseCode

classifyCloseCode(code): CloseCodeClassification

Defined in: packages/connectors/dist/close-code.d.ts:39

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.

number

CloseCodeClassification