Skip to content

Commit 4f7785d

Browse files
committed
docs: update fatal close codes list [skip ci]
1 parent f4320f3 commit 4f7785d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/interfaces/client.ClientOptions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ How many times should the client try to reconnect on abnormal socket closure bef
187187
The library classifies the following close events as fatal:
188188
- _All internal WebSocket fatal close codes (check `isFatalInternalCloseCode` in `src/client.ts` for exact list)_
189189
- `4500: Internal server error`
190+
- `4005: Internal client error`
190191
- `4400: Bad request`
192+
- `4004: Bad response`
191193
- `4401: Unauthorized` _tried subscribing before connect ack_
192194
- `4406: Subprotocol not acceptable`
193195
- `4409: Subscriber for <id> already exists` _distinction is very important_

src/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,9 @@ export interface ClientOptions {
330330
* The library classifies the following close events as fatal:
331331
* - _All internal WebSocket fatal close codes (check `isFatalInternalCloseCode` in `src/client.ts` for exact list)_
332332
* - `4500: Internal server error`
333+
* - `4005: Internal client error`
333334
* - `4400: Bad request`
335+
* - `4004: Bad response`
334336
* - `4401: Unauthorized` _tried subscribing before connect ack_
335337
* - `4406: Subprotocol not acceptable`
336338
* - `4409: Subscriber for <id> already exists` _distinction is very important_

0 commit comments

Comments
 (0)