-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Server Sent Events #88
Comments
A related question would be how to integrate websockets, should the need arise? |
@mtiller this is something I've been meaning to look into as we may start using SSE in the next few months as well. I don't know whether it is currently possible (it seems like it's not) so maybe we need to add |
What I don't quite get is why the |
I've added a pull request (#89) that resolves this. If you could merge this, my tests indicate that SSE should work at that point. |
Closing as this was resolved in #89 for Huma v1, and Huma v2 has an |
I was looking for a way for
huma
resources to implement Server Sent Events. In that example, they see if the response writer conforms to theFlusher
interface. If it does, there is no problem. But I've tried that withhuma.Context
and it does not conform to theFlusher
interface. As a result, it isn't possible to flush the events as they are generated.Any suggestions here?
The text was updated successfully, but these errors were encountered: