Closed 7flash closed 4 months ago
According to Server-Sent Events spec the name of the event is event:
not name:
.
See this tutorial https://javascript.info/server-sent-events#event-types
So you need:
stream.send({ event: 'eventName1', data: '' });
I am using wayne along with htmx and I would like elements to subscribe for specific events as in docs
then accordingly broadcast named events