From e850a290eb57da3ad28b342246185726a409f8e2 Mon Sep 17 00:00:00 2001 From: echicken <echicken@bbs.electronicchicken.com> Date: Fri, 26 Apr 2024 14:41:43 +0000 Subject: [PATCH] test --- src/lib/socket-device.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/socket-device.ts b/src/lib/socket-device.ts index 3e99ef4..60ae8de 100644 --- a/src/lib/socket-device.ts +++ b/src/lib/socket-device.ts @@ -27,10 +27,7 @@ export default class SocketDevice extends Device { this.host = host; this.port = port; this.socket = new js.global.Socket(); - function hb(this: Device): void { - this.getChannel(0, fr => js.global.writeln('CHANNEL HB RESPONSE: ' + JSON.stringify(fr))); - } - js.setInterval(hb.bind(this), 30000, this); + js.setInterval(this.sendHeartbeat, 30000, this); } /** -- GitLab