powered by Jive Software

Group chat service name

Is there a way to discover the group chat service name of the XMPP server? Example code would be really useful.

Thanks in advance - AYAL

idd, the class MultiUserChat has the methods

MultiUserChat#getServiceNames(XMPPConnection connection)

// Returns a collection with the XMPP addresses of the Multi-User Chat services.



MultiUserChat#getHostedRooms(XMPPConnection connection, String serviceName)

// Returns a collection of HostedRooms where each HostedRoom has the XMPP address of the room and the room’'s name.


Both return Collections. Once you have the Service names simply call getHostedRooms to obatin all the Rooms hosted by that service

I’'m not sure how I missed that. Thank you very much - AYAL