mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-01-18 21:32:27 +01:00
Pinging ECL WS server
This commit is contained in:
parent
79f3344f7e
commit
54b1d5b8b9
@ -114,7 +114,7 @@ export class ECLWebSocketClient {
|
||||
return;
|
||||
if (eclWsClt.webSocketClient.readyState !== 1)
|
||||
return;
|
||||
eclWsClt.webSocketClient.send('Pinging Server');
|
||||
eclWsClt.webSocketClient.ping();
|
||||
setTimeout(() => {
|
||||
this.heartbeat(eclWsClt);
|
||||
}, 59 * 1000);
|
||||
|
@ -123,7 +123,7 @@ export class ECLWebSocketClient {
|
||||
this.logger.log({ selectedNode: eclWsClt.selectedNode, level: 'INFO', fileName: 'ECLWebSocket', msg: 'Websocket Server Heartbeat..' });
|
||||
if (!eclWsClt.webSocketClient) return;
|
||||
if (eclWsClt.webSocketClient.readyState !== 1) return;
|
||||
eclWsClt.webSocketClient.send('Pinging Server');
|
||||
eclWsClt.webSocketClient.ping();
|
||||
setTimeout(() => {
|
||||
this.heartbeat(eclWsClt);
|
||||
}, 59 * 1000);
|
||||
|
Loading…
Reference in New Issue
Block a user