Stop publications to idle users

If a user on a Meteor site leaves his browser window open all day, the server will continue to publish documents to this client. For most Meteor apps, this isn’t necessary. If a user has been idle for even a few minutes, we should be able to stop the publication to the user. We can resubscribe when the becomes active again.

Is there a way to implement this functionality at the moment?

I think Trello does something similar. It will show you a “Disconnected from server. Please reconnect” message if you haven’t done anything on the site in a while.

1 Like

Look at the mizzao:user-status and make subscription.stop() if isIdle === true

1 Like

That’s a simple solution! Thanks