-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Centralise expected close codes in
CloseCode
enum
- Loading branch information
Showing
13 changed files
with
193 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[graphql-ws](../README.md) / [common](../modules/common.md) / CloseCode | ||
|
||
# Enumeration: CloseCode | ||
|
||
[common](../modules/common.md).CloseCode | ||
|
||
`graphql-ws` expected and standard close codes of the [GraphQL over WebSocket Protocol](/PROTOCOL.md). | ||
|
||
## Table of contents | ||
|
||
### Enumeration members | ||
|
||
- [BadRequest](common.CloseCode.md#badrequest) | ||
- [ConnectionInitialisationTimeout](common.CloseCode.md#connectioninitialisationtimeout) | ||
- [Forbidden](common.CloseCode.md#forbidden) | ||
- [InternalServerError](common.CloseCode.md#internalservererror) | ||
- [SubprotocolNotAcceptable](common.CloseCode.md#subprotocolnotacceptable) | ||
- [SubscriberAlreadyExists](common.CloseCode.md#subscriberalreadyexists) | ||
- [TooManyInitialisationRequests](common.CloseCode.md#toomanyinitialisationrequests) | ||
- [Unauthorized](common.CloseCode.md#unauthorized) | ||
|
||
## Enumeration members | ||
|
||
### BadRequest | ||
|
||
• **BadRequest** = `4400` | ||
|
||
___ | ||
|
||
### ConnectionInitialisationTimeout | ||
|
||
• **ConnectionInitialisationTimeout** = `4408` | ||
|
||
___ | ||
|
||
### Forbidden | ||
|
||
• **Forbidden** = `4403` | ||
|
||
___ | ||
|
||
### InternalServerError | ||
|
||
• **InternalServerError** = `4500` | ||
|
||
___ | ||
|
||
### SubprotocolNotAcceptable | ||
|
||
• **SubprotocolNotAcceptable** = `4406` | ||
|
||
___ | ||
|
||
### SubscriberAlreadyExists | ||
|
||
• **SubscriberAlreadyExists** = `4409` | ||
|
||
Subscriber distinction is very important | ||
|
||
___ | ||
|
||
### TooManyInitialisationRequests | ||
|
||
• **TooManyInitialisationRequests** = `4429` | ||
|
||
___ | ||
|
||
### Unauthorized | ||
|
||
• **Unauthorized** = `4401` | ||
|
||
Tried subscribing before connect ack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.