From 44e8d685dfd0881c4b80996e8cdc1c5c03254865 Mon Sep 17 00:00:00 2001 From: rosetta Date: Sun, 1 Feb 2026 02:15:06 +0200 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BF=D0=BE?= =?UTF-8?q?=D0=B4=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/providers/ProtocolProvider/protocol/protocol.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/providers/ProtocolProvider/protocol/protocol.ts b/app/providers/ProtocolProvider/protocol/protocol.ts index 4846b6c..fb3a4b8 100644 --- a/app/providers/ProtocolProvider/protocol/protocol.ts +++ b/app/providers/ProtocolProvider/protocol/protocol.ts @@ -65,10 +65,11 @@ export default class Protocol extends EventEmitter { } public startHeartbeat(intervalS : number) { + let _this = this; const heartbeat = () => { - if(this.socket && this.socket.readyState === WebSocket.OPEN){ + if(_this.socket && _this.socket.readyState === WebSocket.OPEN){ console.info("HEARTBEAT"); - this.socket?.send('heartbeat'); + _this.socket?.send('heartbeat'); } } if(this.heartbeatIntervalTimer){