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
537 stars 14 forks source link

Add ability to broadcast messages to multiple sessions at once. #5

Closed MatthewWid closed 3 years ago

MatthewWid commented 3 years ago

Add the ability to broadcast events to multiple sessions at once. This will mean that users can call Session methods on the broadcast channel and every session subscribed to that channel will have the same methods called on them.

MatthewWid commented 3 years ago

As a reference implementation: sse-channel uses channels as first-class objects to broadcast to multiple clients.

MatthewWid commented 3 years ago

Implemented in #24.