Removed server lint errors

This commit is contained in:
ShahanaFarooqui 2022-12-27 22:18:58 -08:00
parent ada3c6caf3
commit c21d1f5b59
3 changed files with 2 additions and 5 deletions

View File

@ -113,11 +113,9 @@ export class ECLWebSocketClient {
if (!eclWsClt.webSocketClient) { if (!eclWsClt.webSocketClient) {
return; return;
} }
;
if (eclWsClt.webSocketClient.readyState !== 1) { if (eclWsClt.webSocketClient.readyState !== 1) {
return; return;
} }
;
eclWsClt.webSocketClient.ping(); eclWsClt.webSocketClient.ping();
setTimeout(() => { setTimeout(() => {
this.heartbeat(eclWsClt); this.heartbeat(eclWsClt);

View File

@ -120,8 +120,8 @@ export class ECLWebSocketClient {
public heartbeat = (eclWsClt) => { public heartbeat = (eclWsClt) => {
this.logger.log({ selectedNode: eclWsClt.selectedNode, level: 'DEBUG', fileName: 'ECLWebSocket', msg: 'Websocket Server Heartbeat..' }); this.logger.log({ selectedNode: eclWsClt.selectedNode, level: 'DEBUG', fileName: 'ECLWebSocket', msg: 'Websocket Server Heartbeat..' });
if (!eclWsClt.webSocketClient) { return }; if (!eclWsClt.webSocketClient) { return; }
if (eclWsClt.webSocketClient.readyState !== 1) { return }; if (eclWsClt.webSocketClient.readyState !== 1) { return; }
eclWsClt.webSocketClient.ping(); eclWsClt.webSocketClient.ping();
setTimeout(() => { setTimeout(() => {
this.heartbeat(eclWsClt); this.heartbeat(eclWsClt);

View File

@ -9,4 +9,3 @@ export enum ECLWSEventsEnum {
CHANNEL_CLOSED = 'channel-closed', CHANNEL_CLOSED = 'channel-closed',
ONION_MESSAGE_RECEIVED = 'onion-message-received' ONION_MESSAGE_RECEIVED = 'onion-message-received'
} }