Skip to content
Snippets Groups Projects
Commit e850a290 authored by echicken's avatar echicken :chicken:
Browse files

test

parent 2e919841
No related branches found
No related tags found
No related merge requests found
...@@ -27,10 +27,7 @@ export default class SocketDevice extends Device { ...@@ -27,10 +27,7 @@ export default class SocketDevice extends Device {
this.host = host; this.host = host;
this.port = port; this.port = port;
this.socket = new js.global.Socket(); this.socket = new js.global.Socket();
function hb(this: Device): void { js.setInterval(this.sendHeartbeat, 30000, this);
this.getChannel(0, fr => js.global.writeln('CHANNEL HB RESPONSE: ' + JSON.stringify(fr)));
}
js.setInterval(hb.bind(this), 30000, this);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment