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

examples to check user online? #128

Open
arlyxiao opened this issue Mar 4, 2014 · 1 comment
Open

examples to check user online? #128

arlyxiao opened this issue Mar 4, 2014 · 1 comment

Comments

@arlyxiao
Copy link

arlyxiao commented Mar 4, 2014

Anyone can show some examples to check whether the user is online?

@benlangfeld
Copy link
Member

You can access your client's roster via Blather::Client#roster. You can then look up the contact you are interested in using Blather::Roster#[], and get the status of that user from Blather::RosterItem#status.

Once you have this working, I'd love to see an example here, or maybe a blog post explaining it :)

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

No branches or pull requests

2 participants