Server Sent Events
Hello guys! Sorry if this was asked before. I'm trying to implement an event emitter with SSE like this:
but it seems it goes directly in the onError on frontend because it closes the stream
2 Replies
The fix seems to be to add this inside streamSSE:
Is this the expected way to use SSE in hono?
I think i've found something related. It seems i need to use stream instead https://github.com/honojs/hono/issues/2993
GitHub
Stream should not be closed automatically · Issue #2993 · honojs/ho...
What version of Hono are you using? 4.4.6 What runtime/platform is your app running on? Bun What steps can reproduce the bug? Using either stream or streamSSE is not gonna work unless you're us...