konecty/meteor-user-presence

Is it compatible with ObjectiveDDP

Closed this issue · 3 comments

I'm using objectiveDDP in my iOS app, is this package compatible with any ddp connection or it requieres client side Javascript to work?

Hi @bitomule, probably it's compatible, but you need to implement calls to set user as away and online because I do this in client side code of package.

You can read the code here https://github.com/Konecty/meteor-user-presence/blob/master/client/client.js

Basically you need to call methods UserPresence:away and UserPresence:online.

It works. Right now I'm only using online, not away. Just called the method on login in iOS app. I'll even add away when app goes to background. Great work!

Nice, will be great if you can create a PR adding how to do this in the README of this project.