]> git.cworth.org Git - empires-server/commit
Add a new player-info event to the stream
authorCarl Worth <cworth@cworth.org>
Fri, 5 Jun 2020 12:41:40 +0000 (05:41 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 5 Jun 2020 14:28:57 +0000 (07:28 -0700)
commitc5bdd36586eaa0235fb6822cb4ccb7620e1bb0aa
treefea7261b5f1c272879c000290817e0fd4dbdb84d
parent4c810ccb16ea6cfcdcb7f507aea2affc2c36f163
Add a new player-info event to the stream

This event informs the player what their ID and their name is. It's
significant to tell them their own name because it may be provided
from the server session (obtained by a cookie from the client).

This commit includes a test case which uses the existing /profile
endpoint to set a name, and then verifies that that name is returned
in the player-info event.
.gitignore
game.js
test