MatthewWid / better-sse

⬆ Dead simple, dependency-less, spec-compliant server-sent events implementation for Node, written in TypeScript.
https://matthewwid.github.io/better-sse/
MIT License
558 stars 14 forks source link

Support HTTP/2 Core API #67

Open MatthewWid opened 3 months ago

MatthewWid commented 3 months ago

Currently, only the 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 (#22).

Add support for the Core API.


As this requires significantly altered internal behaviour, this may have to be implemented with an entirely different class (Eg, SessionHttp2) or as an alternative package entry-point (Eg, better-sse/http2).