Skip to content

Commit 7fd6c72

Browse files
authored
allow null payloads (#243)
1 parent dd88170 commit 7fd6c72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rfcs/GraphQLOverWebSocket.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ If the server receives more than one `ConnectionInit` message at any given time,
3737
```typescript
3838
interface ConnectionInitMessage {
3939
type: 'connection_init';
40-
payload?: Record<string, unknown>;
40+
payload?: Record<string, unknown> | null;
4141
}
4242
```
4343

@@ -52,7 +52,7 @@ The server can use the optional `payload` field to transfer additional details a
5252
```typescript
5353
interface ConnectionAckMessage {
5454
type: 'connection_ack';
55-
payload?: Record<string, unknown>;
55+
payload?: Record<string, unknown> | null;
5656
}
5757
```
5858

@@ -73,7 +73,7 @@ The optional `payload` field can be used to transfer additional details about th
7373
```typescript
7474
interface PingMessage {
7575
type: 'ping';
76-
payload?: Record<string, unknown>;
76+
payload?: Record<string, unknown> | null;
7777
}
7878
```
7979

@@ -90,7 +90,7 @@ The optional `payload` field can be used to transfer additional details about th
9090
```typescript
9191
interface PongMessage {
9292
type: 'pong';
93-
payload?: Record<string, unknown>;
93+
payload?: Record<string, unknown> | null;
9494
}
9595
```
9696

0 commit comments

Comments
 (0)