We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5d3d19 commit 271a5a9Copy full SHA for 271a5a9
deno/index.ts
@@ -54,6 +54,9 @@ async function init() {
54
}
55
56
async function sendMessage(message: any, socket: WebSocket) {
57
+ if (socket.isClosed) {
58
+ return;
59
+ }
60
const structured = serializeStructure(message);
61
const json = JSON.stringify(structured);
62
return socket.send(json);
0 commit comments