From c3d38b542f27ba44f85e66a86f706b75234622ad Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Wed, 12 Sep 2018 15:12:50 +0200 Subject: [PATCH] fix ping message --- assets/js/sumorobot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/sumorobot.js b/assets/js/sumorobot.js index e478b6b..0af7c2a 100755 --- a/assets/js/sumorobot.js +++ b/assets/js/sumorobot.js @@ -41,7 +41,7 @@ Sumorobot.prototype.connect = function() { // Setup a timer to ping the robot self.watchdogTimer = setInterval(function() { // Send a ping to the robot - self.send(self.robotId, 'ping'); + self.send('ping'); }, 500); }; // When the WebSocket closes