serge-web / serge

Serious Gaming, Evolved - web interface
https://sites.google.com/deepbluec.com/serge/
Apache License 2.0
14 stars 4 forks source link

API end-point to support polling #2951

Closed IanMayo closed 1 month ago

IanMayo commented 2 months ago

We have a last end-point that retrieves the latest version of the wargame. We don't have an end-point that retrieves the latest document regardless of document point.

Hmm, we could have that, but it could allow one or more messages to be missed if they are being sent frequently.

We should provide a lastDoc end-point that returns the latest document, regardless of document type.

If an ID is appended to lastDoc then all documents since that one are returned.