Pinging ECL WS server

This commit is contained in:
ShahanaFarooqui 2022-12-21 15:04:37 -08:00
parent 79f3344f7e
commit 54b1d5b8b9
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);