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

Support Server Sent Event #525

Open
hurelhuyag opened this issue Nov 24, 2022 · 0 comments
Open

Support Server Sent Event #525

hurelhuyag opened this issue Nov 24, 2022 · 0 comments

Comments

@hurelhuyag
Copy link

hurelhuyag commented Nov 24, 2022

Is your feature request related to a problem? Please describe.
The Server Sent Event (SSE) is an essential feature for modern applications and We proved SSE is possible with Dio.

Describe the solution you'd like

@GET("/sse-endpoint")
Stream<SseMessage> sse();

or maybe we should introduce @SSE annotation instead of @GET.

Describe alternatives you've considered
Currently, I'm using Dio directly for this kind of connection. But It can generated by retrofit_generator

Additional context
cfug/dio#1279

Also, I created a transformer to build SseMessage. cfug/dio#1279 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant