]> git.cworth.org Git - empires-server/commit
Send multiple game-state events (if needed) when a client connects
authorCarl Worth <cworth@cworth.org>
Mon, 11 May 2020 21:52:09 +0000 (14:52 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 11 May 2020 21:52:09 +0000 (14:52 -0700)
commit7363a23acc24ac73720927802043748e602e2da4
tree0a7e235bbceb77d5245a4efdcab4b84fff7e72fc
parent6271cc2fcbb283f9d9dee520a183d80660ee041e
Send multiple game-state events (if needed) when a client connects

This implements the latest change as of version 0.6 of the API protocol.

This change fixes a bug in the current empires-html client where
reloading the browser when in the middle of the game would break the
client, (by displaying some content that's inappropriate for the
current state). By sending each step-wise transition through the game
states, the client does not get confused.
server.js