This commit is contained in:
StarAppeal
2024-03-03 11:02:27 +01:00
parent 060706b959
commit d41521005c
@@ -13,10 +13,10 @@ export function heartbeat(wss: WebSocketServer) {
ws.isAlive,
);
if (!ws.isAlive) return ws.terminate();
ws.send("keepalive");
// ws.send("keepalive");
ws.isAlive = false;
ws.ping("keepalive");
ws.ping();
},
);
};