-
Notifications
You must be signed in to change notification settings - Fork 31
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
Client stops receiving messages 60 seconds after load #5
Comments
Have you tried
|
Yes, I do have it on. Messages just stop being printed too. |
I fixed it. Phoenix's |
Yeah setting this to :infinity is very very bad and can cause old connections that should be dropped to remain open until the 30minute TCP timeout. @hojgr you should not set that to infinity and until this library fixes the heartbeat then you should perform your own heartbeat (send anything once every twenty-thirty seconds or so). This is what the heartbeat is for and makes it plainly obvious that the heartbeat is not implemented yet. |
Hello,
awesome package! After a little fiddling around I got it to work but encountered something weird. My backend is broadcasting message every 200 ms. Those are 3 messages that alternate (1,2,3,1,2,3,...)
But 60 seconds after loading the page the messages stop coming. Server is still sending them (on refresh it works again) but nothing happens on client. No
onClose
message comes to update, no error (I think) happens.What could be the problem? Has it happend to anyone else?
Thanks!
The text was updated successfully, but these errors were encountered: