Skip to content

Commit cc3bed4

Browse files
committed
make WS happy again
1 parent 223ff64 commit cc3bed4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const WebSocket = require("ws")
105105
websocket: {
106106
only: true,
107107
initially: true,
108-
subprotocol: "quux/1.0",
108+
subprotocol: "quux",
109109
connect: ({ ctx, ws }) => {
110110
ctx.to = setInterval(() => {
111111
if (ws.readyState === WebSocket.OPEN)

sample-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const WebSocket = require("ws")
7272
websocket: {
7373
only: true,
7474
initially: true,
75-
subprotocol: "quux/1.0",
75+
subprotocol: "quux",
7676
connect: ({ ctx, ws }) => {
7777
ctx.to = setInterval(() => {
7878
if (ws.readyState === WebSocket.OPEN)

0 commit comments

Comments
 (0)