Skip to content

Commit

Permalink
docs: casing adjustment [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Aug 21, 2021
1 parent 3c0316d commit dedcc6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/interfaces/client.clientoptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ How many times should the client try to reconnect on abnormal socket closure bef

The library classifies the following close events as fatal:
- `4500: Internal server error`
- `4400: Bad Request`
- `4400: Bad request`
- `4401: Unauthorized` _tried subscribing before connect ack_
- `4406: Subprotocol not acceptable`
- `4409: Subscriber for <id> already exists` _distinction is very important_
Expand Down
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export interface ClientOptions {
*
* The library classifies the following close events as fatal:
* - `4500: Internal server error`
* - `4400: Bad Request`
* - `4400: Bad request`
* - `4401: Unauthorized` _tried subscribing before connect ack_
* - `4406: Subprotocol not acceptable`
* - `4409: Subscriber for <id> already exists` _distinction is very important_
Expand Down Expand Up @@ -711,7 +711,7 @@ export function createClient(options: ClientOptions): Client {
isLikeCloseEvent(errOrCloseEvent) &&
[
4500, // Internal server error
4400, // Bad Request
4400, // Bad request
4401, // Unauthorized (tried subscribing before connect ack)
4406, // Subprotocol not acceptable
4409, // Subscriber for <id> already exists (distinction is very important)
Expand Down

0 comments on commit dedcc6e

Please sign in to comment.