I think i didn't make the context clear. I am actually writing a
server side module and i  want to know whether the user is online or not at
a particular moment. And i also like the know all the users who are online
and their state, like (Away,  DND etc). I just want to know where this is
stored in the server side and how to access it.

Thanks,
Siva

Date: Tue, 16 Oct 2001 19:48:56 +0100
From: DJ Adams <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [JDEV] How to find whether a user is offline from user.xml fi
le
Reply-To: [EMAIL PROTECTED]

On Tue, Oct 16, 2001 at 01:08:28PM -0500, Peter Saint-Andre wrote:
> To see everyone who is online, I think you can send (as an admin user) the
> following xml:
> 
> <iq type="get" to="yourhostname">
>   <query xmlns="jabber:iq:admin">
>     <who/>
>   </query>
> </iq>
> 
You can also do it like this:

<iq type='get' to='yourhostname/admin'>
  <query xmlns='jabber:iq:browse'/>
</iq>

(hmmm, I reckon this is becoming a FAQ ..)

dj
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev

Reply via email to