diff --git a/assets/js/sumorobot.js b/assets/js/sumorobot.js index 1f19b67..2e582ef 100755 --- a/assets/js/sumorobot.js +++ b/assets/js/sumorobot.js @@ -40,7 +40,6 @@ Sumorobot.prototype.connect = function() { }; // When the WebSocket closes this.websocket.onclose = function(evt) { - console.log("INFO websocket disconnected"); // Clear the pinging clearInterval(self.watchdogTimer); // Try to recnnect to the sumorobot @@ -72,10 +71,8 @@ Sumorobot.prototype.send = function(msg, val) { // https://developer.mozilla.org/en-US/docs/Web/API/WebSocket if (this.websocket.readyState == 1) { if (val === 'undefined') { - console.log("no val") this.websocket.send(`{"to": "sumo-${this.robotId}@00000514", "cmd": "${msg}"}`); } else { - console.log("val") this.websocket.send(`{"to": "sumo-${this.robotId}@00000514", "cmd": "${msg}", "val": "${val}"}`); } }