fix ping 3
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ const interval = setInterval(function ping() {
|
||||
if ((ws as WebSocket & { isAlive: boolean }).isAlive === false) return ws.terminate();
|
||||
|
||||
(ws as WebSocket & { isAlive: boolean }).isAlive = false;
|
||||
ws.ping();
|
||||
ws.send("ping");
|
||||
});
|
||||
}, 30000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user