[JDEV] How to find the presence of a user at server side (was : How to find whether a user is offline from user.xml file)

Malli, Siva_Kumar Siva-Kumar-Malli at deshaw.com
Wed Oct 17 08:04:31 CDT 2001

	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.


Date: Tue, 16 Oct 2001 19:48:56 +0100
From: DJ Adams <dj.adams at pobox.com>
To: jdev at jabber.org
Subject: Re: [JDEV] How to find whether a user is offline from user.xml fi
Reply-To: jdev at jabber.org

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'/>

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


More information about the JDev mailing list