Commit 9204d32
committed
Don't fall back to Apollo when not in subprotocols
If the server doesn't return Sec-WebSocket-Protocol, we can't default to
graphql-ws (ie Apollo) if the transport was configured without it as a
subprotocol. In that situation, default to graphql-transport-ws (GRAPHQLWS).1 parent b57afa6 commit 9204d32
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| 482 | + | |
482 | 483 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
488 | 491 | | |
489 | 492 | | |
490 | 493 | | |
| |||
0 commit comments