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

Generator/Iterator Support #25

Closed MatthewWid closed 3 years ago

MatthewWid commented 3 years ago

Inspired by fastify-sse-v2, this PR adds support for processing iterables and sending yielded values back to the client as events.

In addition, it also renames the Session#stream event option to eventName.