Closed ghost closed 12 months ago
Hi @adamatat, ServerSentEvent()
has been deprecated in favour of ServerSentEventStream()
. See here. Are you able to give that a try and let us know how it goes?
Closing this as ServerSentEvent()
was deprecated and is now removed. Please use ServerSentEventStream()
and open an issue if you run into any problems.
Describe the bug
There's a
close
event for when the readableStream closes, so it's strange and inconsistent that there isn't a correspondingopen
orstart
stream event.Furthermore,
this.#bodyInit
is declared as a private property so the class can't be extended. It has to be entirely duplicated to be usable.** Context ***
I want to be able to send events to the client immediately after they connect, but it's not possible in a clean way due to the current limitations.
Environment