]> git.r.bdr.sh - rbdr/sorting-hat/commitdiff
Fix missing semicolon
authorBen Beltran <redacted>
Tue, 29 Aug 2017 02:37:17 +0000 (21:37 -0500)
committerBen Beltran <redacted>
Tue, 29 Aug 2017 02:37:17 +0000 (21:37 -0500)
lib/sorting_hat.js

index 284c6d3f45c15bb08e34766774d29cfaa86d9b57..ac78f3db43bdc23611e889f27bff37ae2734a687 100644 (file)
@@ -96,7 +96,7 @@ module.exports = class SortingHat {
     this._mindWave = null; // Our main device
     this._socketServer = null; // Our socket server used to communicate with frontend
     this._timer = null; // An internal timer for time based states
-    this._winner = null // The current winner
+    this._winner = null; // The current winner
   }
 
   /**
@@ -353,7 +353,7 @@ module.exports = class SortingHat {
 
     for (const client of this._socketServer.clients) {
       if (client.readyState === WebSocket.OPEN) {
-        client.send(state);
+        client.send(JSON.stringify(state));
       }
     }
   }