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) {
|
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);
|
||||||
|
@ -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);
|
||||||
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user