Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional id parameter to eventStream SendFunctionArgs (#397)
This pull request adds an optional `id`-parameter to the `eventStream`'s send function. This id is buffered in the browser and used when reconnecting to an SSE-endpoint after failure. It's sent as the `Last-Event-ID`-header in the reconnection request. See [SSE spec regarding Last-Event-ID header](https://html.spec.whatwg.org/multipage/server-sent-events.html#the-last-event-id-header) Co-authored-by: Sergio Xalambrí <[email protected]>
- Loading branch information