-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
0.19.0
regression: onPeerLeave
not called when a peer refreshes
#77
Comments
Thanks for flagging. I noticed it works as expected in Chrome but not Firefox. I'm not sure what change would've introduced this regression but it's probably at the peer disconnection event level. I'll look into a fix. One idea for your app (even once the fix lands) is to implement a heartbeat between peers to detect zombie connections. You could do something like a periodic |
Thanks for looking into a fix for this @dmotz! As for zombie connection handling, I had figured that this was handled one way or another in pre- From my perspective as a user of Trystero, it would be ideal if your strategy was implemented at the library level. If nothing else it would save me (and others) from having to re-implement general zombie detection logic in every downstream project. It also strikes me as a Trystero concern (rather than application concern) because it has to do with peer networking implementation details. FWIW, I don't have any expectation of improved zombie connection handling in Trystero. I'd be satisfied with just seeing this regression be addressed. I'd certainly welcome any performance improvements you're interested in making, and I'm happy to help test things out if you'd like that! |
This should be fixed in the latest release (0.20.0), but let me know if you still see issues. |
This is working great. Thanks for the fix @dmotz! I'm excited to be on the latest version of Trystero. :) |
Thanks for all the hard work on the
0.19.0
release!I'm working to upgrade Chitchatter to use the latest Trystero, and it's mostly working great. However I'm noticing that
onPeerLeave
is no longer called when a peer refreshes or otherwise closes the page. This appears to be a regression from0.18.0
.You can see the correct behavior with
0.18.0
at the Production URL: https://chitchatter.im/And the new, broken behavior at this preview URL: https://chitchatter-git-feature-t-0f1de0-jeremy-kahns-projects-98e6f140.vercel.app/
To reproduce the issue:
You can see who is in the room by opening the right-hand menu:
I've done some debugging and couldn't see
onPeerLeave
getting called anywhere when a peer leaves their page. Any idea what might be causing this?The text was updated successfully, but these errors were encountered: