Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSE Client support #453

Closed
sleipnir opened this issue Feb 25, 2021 · 3 comments
Closed

SSE Client support #453

sleipnir opened this issue Feb 25, 2021 · 3 comments

Comments

@sleipnir
Copy link

First of all, I would like to praise this excellent http library.

I need to implement an http SSE Server-Sent-Events client and I would like to know if this is possible with this library. If so, is there an example available? If not, could you tell me any alternative to develop an SSE client in Elixir? I know that there are some options for server side implementation, but I couldn't find any example of an SSE client.
Thanks.

@teamon
Copy link
Member

teamon commented Mar 24, 2021

The best way would be to implement response streaming and a SSE middleware that could parse the stream into proper data structures (one per event)

@sleipnir
Copy link
Author

Cool. Thanks, I'll take a look at the response streaming

@teamon
Copy link
Member

teamon commented Mar 25, 2021

I'll close this issue for now, lets continue in #271

@teamon teamon closed this as completed Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants