Skip to content
Snippets Groups Projects
Commit ad493c8b authored by Jake Dreher's avatar Jake Dreher
Browse files

Fix double interval bug

parent 2e71ab2a
Branches 9-spectator
No related tags found
1 merge request!149 spectator
......@@ -66,16 +66,11 @@ class WebSocketModel {
constructor() {
this.connections = [];
this.games = {};
this.sockserver = new WebSocketServer({ port: 3001 });
this.createGame("game1", "public");
this.createGame("game2", "public");
this.createGame("game3", "public");
this.sockserver = new WebSocketServer({ port: 3001 });
this.onConnection();
for (let game in this.games) {
this.createInterval(game);
}
}
hasGame(gameId) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment