-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Potential disconnect event needed for anonymous users #44
Comments
Interesting that The connection is still deleted, though; is that right? |
@mizzao I have a similar problem, closing browser for either authenticated or anonymous users doesn't do anything. However, for authenticated users, closing tabs triggers the To overcome that, I looked for a solution to set non-logged in users as logged in users temporarily so that the I'm going through all of this, just to see who's viewing a certain page/route for both types of users. Any suggestions? |
Okay, I see the problem here; the https://github.com/mizzao/meteor-user-status/blob/master/status.coffee#L133 What do you guys think should happen in this case? Both events should be triggered? |
Actually, I just looked at this again and it is by design. A I don't think Can you guys clarify what you are doing that would need to watch unauthenticated users disconnect? In @tsega's use case, we could implement something similar to #28 with a weak dependency on Iron Router. |
The
connectionIdle
event triggers instead.Is this a browser issue?
Edit: Oh, if I'm logged in, and I close the window tab, then the
connectionLogout
event triggers, but if I'm not logged in and I close the browser,connectionIdle
triggers.Should there be a
connectionClose
event, given that idling is arguably qualitatively different than closing?The text was updated successfully, but these errors were encountered: