Skip to content

Commit 2e538cb

Browse files
authored
[GraphQL over WS] Recommend close event for rejecting connections (#244)
1 parent 93d3046 commit 2e538cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rfcs/GraphQLOverWebSocket.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ The server must receive the connection initialisation message within the allowed
3434

3535
If the server receives more than one `ConnectionInit` message at any given time, the server will close the socket with the event `4429: Too many initialisation requests`.
3636

37+
If the server wishes to reject the connection, for example during authentication, it is recommended to close the socket with `4403: Forbidden`.
38+
3739
```typescript
3840
interface ConnectionInitMessage {
3941
type: 'connection_init';

0 commit comments

Comments
 (0)