forked from seth/ipv4.army
Remove unused WebSocket event handlers for close and drain
This commit is contained in:
parent
6a3354f597
commit
94163df713
1 changed files with 1 additions and 7 deletions
8
index.ts
8
index.ts
|
@ -167,13 +167,7 @@ const webserver = serve({
|
||||||
},
|
},
|
||||||
message: async (ws, message) => {
|
message: async (ws, message) => {
|
||||||
ws.send(JSON.stringify({ type: "echo", data: message }), true)
|
ws.send(JSON.stringify({ type: "echo", data: message }), true)
|
||||||
},
|
}
|
||||||
close: async (ws) => {
|
|
||||||
console.log("WebSocket closed", ws.id);
|
|
||||||
},
|
|
||||||
drain: async (ws) => {
|
|
||||||
console.log("WebSocket drain", ws.id);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
development,
|
development,
|
||||||
port: 3000,
|
port: 3000,
|
||||||
|
|
Loading…
Add table
Reference in a new issue