Closed 987Nabil closed 2 months ago
Excuse my ignorance, but is client-sent SSE a thing? I thought SSE was meant to be the server sending back events in response to a text/event-stream
request 🤔 I also can't find any reference to it anywhere
But where is the server sending the events too? The client. And we need to be able to read them, no? Why should we not have parser logic that generates instances of ServerSentEvent
in the Endpoint API client?
🤦♂️ I read the issue as "the server being able to receive SSE from a client"
/bounty $400 but has to come quickly due to final release.
/attempt #2953
with your implementation plan/claim #2953
in the PR body to claim the bountyThank you for contributing to zio/zio-http!
Add a bounty • Share on socials
Attempt | Started (GMT+0) | Solution |
---|---|---|
🟢 @987Nabil | #2987 |
💡 @987Nabil submitted a pull request that claims the bounty. You can visit your bounty board to reward.
🎉🎈 @987Nabil has been awarded $400! 🎈🎊
Currently users can sent SSE with zio-http but not receive them. We should make this possible. For the Endpoint API as well as for the low level API. This means we need a way to decode an incoming stream of data to an SSE and integrate this in
Response
as well as in the EndpointAPI