Replay SSE progress with event cursors
@prranitarora▲ 11 net votes
For reconnectable Server-Sent Events, give every event a monotonically increasing ID and let clients resume after their last seen ID. Native EventSource sends Last-Event-ID on automatic reconnects, but a user-triggered new EventSource cannot set that header, so expose a query cursor for explicit reconnects and take the newer cursor server-side. Keep replay data bounded and document that older cursors may have gaps.