Matt W
Matt W
Add a mechanism that allows the user to batch events emitted with `push` over time and then emit them all at once. This will allow users with more advanced use-cases...
Add benchmarks for `better-sse` compared with other libraries for: - [ ] Pushing events to a single client - [ ] Pushing events to multiple clients at once Add benchmarks...
Add a mechanism that automatically sends historical events to newly connected clients. This is done by reading the last event ID field and then sending all events between the last...
Some documentation links with anchors do not work as GitHub encodes the anchor links differently than other markdown generators. Fix the anchor links in the documentation to work with GitHub-flavoured...
Add a Frequently Asked Questions (FAQ) section to the documentation with answers to questions that frequently reappear such as: - [ ] How does server-sent events work? - [ ]...
Once #42 is implemented, the ability to directly modify the internal session buffer with the `.event`, `.data`, `.id`, `.retry`, `.comment`, `.dispatch` and `.flush` methods will be moved into a separate...
Introduce the concept of _adapters_, allowing sessions to be instantiated with inputs other than the Node HTTP [request](https://nodejs.org/api/http.html#class-httpincomingmessage) and [response](https://nodejs.org/api/http.html#class-httpserverresponse) objects and enabling compatibility with practically any JavaScript/TypeScript library, including...
Currently, only the [Compatibility API](https://nodejs.org/api/http2.html#compatibility-api) is usable with the library as part of its HTTP/2 support. This is inadequate for the majority of users using HTTP/2 with Node. Add support...