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
}
/**
for (const client of this._socketServer.clients) {
if (client.readyState === WebSocket.OPEN) {
- client.send(state);
+ client.send(JSON.stringify(state));
}
}
}