remove keepalive console log

This commit is contained in:
2023-05-05 15:35:49 +02:00
parent a8512db65b
commit 625c7730f3
-1
View File
@@ -42,7 +42,6 @@ wss.on('connection', function connection(ws: WebSocket & { isAlive: boolean }, r
const interval = setInterval(function ping() {
wss.clients.forEach(function each(ws) {
console.log("isAlive :" + (ws as WebSocket & { isAlive: boolean }).isAlive)
if ((ws as WebSocket & { isAlive: boolean }).isAlive === false) return ws.terminate();
(ws as WebSocket & { isAlive: boolean }).isAlive = false;