MatthewWid / better-sse

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

Add option to pass eventId on broadcast #62

Closed J-Hoh closed 5 months ago

J-Hoh commented 5 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 5 months ago

Thanks for contributing!

This will be included in the next release.