]> git.cworth.org Git - empires-server/commit
Empathy: Add support for starting the actual game
authorCarl Worth <cworth@cworth.org>
Tue, 9 Jun 2020 15:06:37 +0000 (08:06 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 9 Jun 2020 15:06:37 +0000 (08:06 -0700)
commitd4bf8b14e7407a96f9b035ad48cb31a2393a36ec
tree9e7851983ca54e8759ed6994aead906091ebd1b0
parent0787b1e92bfb59e3f2c4e8953ca5d898ff04bee3
Empathy: Add support for starting the actual game

When a request is received at "/start" to start a particular prompt,
the server responds by broadcasting a "start" event to all clients
telling them to start the game.

The prompt is also set as the active prompt in the game state so that
if any new client joins while a prompt is active they will become
aware of that.
empathy.js