]> git.cworth.org Git - empires-server/blobdiff - game.js
Add a new player-info event to the stream
[empires-server] / game.js
diff --git a/game.js b/game.js
index baf1e557df502cc28f775f3540fa5f14d55102c8..b2193363b92dd1d1e7ac2227ce43456111200eee 100644 (file)
--- 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) {