MatthewWid / better-sse

⬆ Dead simple, dependency-less, spec-compliant server-sent events implementation for Node, written in TypeScript.
MIT License
485 stars 14 forks source link

Polyfill support #23

Closed MatthewWid closed 3 years ago

MatthewWid commented 3 years ago

Resolves #22 and #21.

This PR adds support for the two most popular EventSource polyfills event-source-polyfill and eventsource-polyfill, extracting the last event ID from the optional query parameters and sending a 2KB preamble comment when requested by Internet Explorer-based clients.