]> git.cworth.org Git - empires-api/commit
Document the new /events API endpoint
authorCarl Worth <cworth@cworth.org>
Sun, 10 May 2020 16:51:24 +0000 (09:51 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 10 May 2020 16:51:24 +0000 (09:51 -0700)
commit39b74cde47375adaeacc33507a2173b63e3de10c
tree5d3c03f5ea9213f8f73cda2b151c97bc6f5d8f06
parent9e13e7ccf1313d83e3d253a2c490988ff3d2b833
Document the new /events API endpoint

This is a server-sent events stream which should be very convenient
for implementing the desired semantics of the game. For example, this
stream will allow the server to push out each character name to all
clients dur the phase of the game where characters are revealed
(without requiring clients to poll for characters nor agree on the
timing for displaying them).
api.text