fix ping message

This commit is contained in:
Silver Kuusik 2018-09-12 15:12:50 +02:00
parent a6005aef11
commit c3d38b542f
1 changed files with 1 additions and 1 deletions

View File

@ -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