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",