From 39cdf17e3ea94efbb94bdea7e7066f9619fa6cc1 Mon Sep 17 00:00:00 2001 From: sky Date: Sun, 26 Oct 2025 15:30:09 -0400 Subject: [PATCH] close socket --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4602ae2..7c996d1 100755 --- a/index.js +++ b/index.js @@ -85,7 +85,7 @@ wss.on("connection", function connection(ws, req, res) { } }); - ws.on("close", () => {}); + ws.on("close", () => {server.close()}); }); app.post( "/api/event",