mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2024-11-19 01:40:29 +01:00
Removed server lint errors
This commit is contained in:
parent
ada3c6caf3
commit
c21d1f5b59
@ -113,11 +113,9 @@ export class ECLWebSocketClient {
|
||||
if (!eclWsClt.webSocketClient) {
|
||||
return;
|
||||
}
|
||||
;
|
||||
if (eclWsClt.webSocketClient.readyState !== 1) {
|
||||
return;
|
||||
}
|
||||
;
|
||||
eclWsClt.webSocketClient.ping();
|
||||
setTimeout(() => {
|
||||
this.heartbeat(eclWsClt);
|
||||
|
@ -120,8 +120,8 @@ export class ECLWebSocketClient {
|
||||
|
||||
public heartbeat = (eclWsClt) => {
|
||||
this.logger.log({ selectedNode: eclWsClt.selectedNode, level: 'DEBUG', fileName: 'ECLWebSocket', msg: 'Websocket Server Heartbeat..' });
|
||||
if (!eclWsClt.webSocketClient) { return };
|
||||
if (eclWsClt.webSocketClient.readyState !== 1) { return };
|
||||
if (!eclWsClt.webSocketClient) { return; }
|
||||
if (eclWsClt.webSocketClient.readyState !== 1) { return; }
|
||||
eclWsClt.webSocketClient.ping();
|
||||
setTimeout(() => {
|
||||
this.heartbeat(eclWsClt);
|
||||
|
@ -9,4 +9,3 @@ export enum ECLWSEventsEnum {
|
||||
CHANNEL_CLOSED = 'channel-closed',
|
||||
ONION_MESSAGE_RECEIVED = 'onion-message-received'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user