How to get list of online users?

  1. just one information:

I use anonymouslogin on my chat client (using xiff).

  1. I want get a list of all users in a room through a php script, but i don’'t know how.

I have no problem with php programming, however i don’'t know how to get access to such a user list.

Forgive me for my bad english, please.

Message was edited by: werker

Message was edited by: werker

Hey werker,

Without joining a room you can discover the list of room occupants as explained here:

http://www.jabber.org/jeps/jep-0045.html#disco-roomitems. That feature is based on service discovery so make sure that the room is not locked and is a public room.

However, if you already joined the room then you will get a presence for each room occupant as explained here: http://www.jabber.org/jeps/jep-0045.html#enter-pres.

Regards,

– Gato