diff --git a/src/lib/socket-device.ts b/src/lib/socket-device.ts
index 3e99ef43124d712af620112d34de49caec47e5de..60ae8de5431aa0fd73d2513cb69389a7aa1ba104 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);
 	}
 
 	/**