-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
Does not work with Server-Sent Events #17
Comments
You need to call |
ah...thanks! :) |
Actually...it seems there's no such method :/ |
I do need to add that to the readme, it seems. |
thanks again! works perfectly now :) |
Awesome! I need to add this information to the README, haha. I'm going to keep this open until I do :) |
So I'm working on a small application which uses Server-Sent Events...everything works perfectly in my local environment, but the server refuses to push out any messages when the app runs on heroku.
I spent quite a few hours trying to debug this.. Then I found out it's because I'm using compression middleware in production environment. everything works again as soon as I remove it.
I'm using the basic SSE implementation, not using any third party library for that. You should be able to reproduce this issue by adding this middleware to any expressjs + SSE code examples. (like this one: https://github.com/TravelingTechGuy/express-eventsource)
I'm fairly new to expressjs. I'd be great if this can be solved (or if anyone can provide a workaround solution).
Thanks!
The text was updated successfully, but these errors were encountered: