X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=game.js;h=b2193363b92dd1d1e7ac2227ce43456111200eee;hb=c5bdd36586eaa0235fb6822cb4ccb7620e1bb0aa;hp=baf1e557df502cc28f775f3540fa5f14d55102c8;hpb=4c810ccb16ea6cfcdcb7f507aea2affc2c36f163;p=empires-server diff --git a/game.js b/game.js index baf1e55..b219336 100644 --- a/game.js +++ b/game.js @@ -151,6 +151,9 @@ class Game { }); response.write(`event: game-info\ndata: ${game_info_json}\n\n`); + /* And the player-info event. */ + response.write(`event: player-info\ndata: ${player.info_json()}\n\n`); + /* Finally, if this game class has a "state" property, stream that * current state to the client. */ if (this.state) {