]> git.cworth.org Git - empires-server/commit
Add an API for server-sent events at `/events`
authorCarl Worth <cworth@cworth.org>
Sun, 3 May 2020 22:05:23 +0000 (15:05 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 3 May 2020 22:05:23 +0000 (15:05 -0700)
commita7af56552e2a36e0a069f0aec5c1a9e9b0407e6e
tree1bc355fdf3c99b4c0824b2577605836d06c5ccfc
parent726a04320f951f999a51b74d02bde07a06f7147e
Add an API for server-sent events at `/events`

So far there are two event types being sent here:

  players: An event reporting the complete list of registered players

  player-register: An event reporting a new player has registered

I'm not 100% sure these are all formatted correctly yet. I'll need to
implement a client to listen to these events and then check that.
server.js