PDA

View Full Version : How to online status checked


mohdalihpk
07-15-2008, 06:46 AM
Dear all I'll be thankful to you all, I am creating a web client for openfire server using muse client lib. I have a problem that I cannot judge that when someone come online and when he ask me for his subscription. Plz if someone can do it give me the solution.

Regards,
Ali

Jehan
07-15-2008, 10:31 AM
Hello,

I am not sure to understand what you mean. When you write "subscription", do you mean indeed "presence"? If so, this is up to the client to send his presence to his server when he comes online. And then it is up to the server to dispatch this presence to everyone in the roster, who has the right to see presence (so yes who is subscribed to one's presence).
So if you don't receive such presence from your contacts, either you are not well subscribed, either there is a bug on the server or the remote contact's client. You can check both things by using well known working clients and servers (so you know, at least the presence is not bugged as it is basic usage) with XML consoles.

All this procedure is explained in RFC 3921, section 5.1: http://www.xmpp.org/rfcs/rfc3921.html#presence
And read section 5.5 for very basic examples of the stanzas you would receive.