this.id = id;
this.clients = [];
this.next_client_id = 1;
+
+ /* Send a comment to every connected client every 15 seconds. */
+ setInterval(() => {this.broadcast_string(":");}, 15000);
}
/* Suport for game meta-data.
}
}
+ broadcast_move(move) {
+ this.broadcast_event("move", move);
+ }
+
}
module.exports = Game;