This commit is contained in:
parent
fc36802567
commit
3bc40382d6
16 changed files with 396 additions and 64 deletions
|
@ -84,9 +84,10 @@ const server = serve({
|
|||
true,
|
||||
);
|
||||
},
|
||||
message: (ws, msg) => {
|
||||
message: (ws, msg: string) => {
|
||||
if (msg === "ping") ws.send("pong", true);
|
||||
if (msg === "pong") ws.send("ping", true);
|
||||
|
||||
return;
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue