Async generator handler should follow text/event-stream
protocol
#742
Labels
bug
Something isn't working
text/event-stream
protocol
#742
What version of Elysia.JS is running?
"elysia": "^1.1.3"
What platform is your computer?
Darwin 23.5.0 arm64 arm
What steps can reproduce the bug?
The output of this code will be:
There are several problems with this code:
[object Object]
Async generator yielding an object results in[object Object]
output #741elysia/src/handler.ts
Line 156 in 8173d90
What is the expected behavior?
Elysia should return a
text/event-stream
compatible output if the handler is an async generator:What do you see instead?
Elysia concatenates the outputs inline calling .toString() on each of them
Additional information
No response
The text was updated successfully, but these errors were encountered: