-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
A hapijs server sent event (SSE) example #4521
Comments
That is not really a SSE, as it needs to have Anyway, you should probably not use Also, a |
what's the difference between explicitly using res.end() compare to return a PassThrough? |
I just went through the code of susie, it seems pretty close to what kanongil has in mind. It's pretty old but I think it should be mostly functional even on today's hapi, you can always fork it if you find bugs. |
So is there a way to do "text/event-stream" in hapi? |
@wy193777 @8th-block Check this out: https://matthewwid.github.io/better-sse/reference/recipes/#hapi I haven't tried it, but I ran into it and asked the maintainer to add a Hapi example and he did. Perhaps it can fit your needs? |
Module version
21.3.10
What documentation problem did you notice?
There is no hapijs SSE example. I recently figured it out but don't know where to put it. So I have it here:
The text was updated successfully, but these errors were encountered: