-
Notifications
You must be signed in to change notification settings - Fork 54
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
Meteor reconnects and updates db in recursion #114
Comments
Thanks for your report! Did you replace However, I'd love to get your feedback when we do the switch to |
Looks like the problem was because I didn't use meteor disconnect. I have added disconnect to activity on destroy and looks like everything is ok. But it is very strange. When I used disconnect in on pause and connect on resume connection didn't worke properly. I have found one more strange issue: to get information from server I need subscribe to necessary data after each request. It is very strange. Is way to check subscriptions? Thank you! |
Glad to hear that, thanks for resolving this issue!
That's strange, indeed. As you assumed, it should really work in both scenarios, when you connect/disconnect in
What do you refer to with "each request"? Do you experience that you have to re-subscribe after every re-connect? That's plausible, since subscriptions are only kept if the session is not lost. |
There are some news in #101 that might be relevant. |
Hi there!
I found the very strange behavior.
Meteor rewrites local db in recursion.
Investigating this issue I have found in log following lines:
ddp lib prints this lines onDisconnected.
Looks like meteor connects, updates local db, disconnects then connects again, updates local db, again disconnects ...
Did anybody meet the problem such this?
Could be problem in socket library?
Since I work with wss, I have replaced https://github.com/ngauthier/tubesock with https://github.com/TakahikoKawasaki/nv-websocket-client.
Thank you!
The text was updated successfully, but these errors were encountered: