Closed remorses closed 2 months ago
Should have been fixed with https://github.com/elysiajs/elysia/commit/0a4977acd6459c3357ad1dbe5d9231f7c7cd6278, published under 1.1.4
Can you check https://github.com/elysiajs/elysia/pull/743? The server should return valid text/event-stream content instead of concatenated JSON strings
For generators to make sense you need to have a separator between items, otherwise you can't distinguish each item. text/event-stream
already has a format for this
Closing in favor of #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?
What is the expected behavior?
Elysia should call JSON.stringify on every output of an async generator
What do you see instead?
Elysia encodes objects to
[object Object]
Additional information
No response