How to list all connections on a conference server?

Hi

I’m developing a chat application with for chatrooms on the same conference server. I’m trying to get the number of users displayed who are online or connected to this conference server (all rooms). I would like to do it without joining a room. Does anyone know if that is possible or not ?

http://www.xmpp.org/extensions/xep-0045.html#disco-roomitems

It’s optionally possible, but getting the userlist from every room on the server is potentially a very expensive operation. There might be another way to do it, but I can’t think of a way offhand.

thanks, this has worked !