Skip to content
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

UserPresence.start() is called twice #182

Closed
wants to merge 1 commit into from
Closed

UserPresence.start() is called twice #182

wants to merge 1 commit into from

Conversation

rockhouse
Copy link
Contributor

The method UserPresence.start() is called twice within Meteor.startup once in presence.coffee and once in startup.coffee nothing big but I guess we need just one call right?

once in presence.coffee and once in startup.coffee nothing big but I
guess we need just one call right?
@sampaiodiego
Copy link
Member

Actually, since one code runs on server and another on client, it's not called twice.

I'm not sure if to call UserPresence.start() on server is necessary, I'll check that. But on the client, it's needed to notifiy server when window loses focus (user is away)

@rockhouse
Copy link
Contributor Author

You are right, my bad, indeed both are needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants