CloseCodeClassification
Defined in: packages/connectors/dist/close-code.d.ts:18
How a client should treat a disconnect reported with a given close code.
Properties
Section titled “Properties”
readonlyclean:boolean
Defined in: packages/connectors/dist/close-code.d.ts:23
True when the code reports an intentional, orderly close (RFC 6455 1000) — no auto-reconnect should fire.
retryable
Section titled “retryable”
readonlyretryable:boolean
Defined in: packages/connectors/dist/close-code.d.ts:30
False only when retrying cannot fix the rejection (RFC 6455 1008, “Policy Violation”: the server is deliberately refusing this client). Every other code is retryable, although a clean 1000 close independently suppresses the client’s auto-reconnect behavior.