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

Add option to pass eventId on broadcast #62

Closed J-Hoh closed 6 months ago

J-Hoh commented 6 months ago

Was wondering why it's not possible to pass your own eventId using the broadcast function of a channel. Instead of the generated random UUID you can now pass your own with the use of the options parameter.

MatthewWid commented 6 months ago

Thanks for contributing!

This will be included in the next release.