From: Ben Beltran Date: Tue, 29 Aug 2017 02:37:17 +0000 (-0500) Subject: Fix missing semicolon X-Git-Url: https://git.r.bdr.sh/rbdr/sorting-hat/commitdiff_plain/b21a9771b4f02de35d224c898fbda5b359656e94 Fix missing semicolon --- diff --git a/lib/sorting_hat.js b/lib/sorting_hat.js index 284c6d3..ac78f3d 100644 --- a/lib/sorting_hat.js +++ b/lib/sorting_hat.js @@ -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)); } } }