aboutsummaryrefslogtreecommitdiff
path: root/lib/sorting_hat.js
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2017-08-28 21:37:17 -0500
committerBen Beltran <ben@nsovocal.com>2017-08-28 21:37:17 -0500
commitb21a9771b4f02de35d224c898fbda5b359656e94 (patch)
tree148627bed3989237cf424f54c4728399b4e0f119 /lib/sorting_hat.js
parent8cfba6fefb4d7b899d52584fd0f7778e7d921691 (diff)
Fix missing semicolon
Diffstat (limited to 'lib/sorting_hat.js')
-rw-r--r--lib/sorting_hat.js4
1 files changed, 2 insertions, 2 deletions
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));
}
}
}