I am using openfire server and XMPP protocol for chatting and i got success in it.
Now i want to implement room chatting. I google lots about it, what i get is 'Joing Room', 'Create Room' but first i want to get list of all room name from conferrance.
i have conferance and room in it :
#define CONFERENCE_ROOM_SERVER @"chatroomforfriends"
#define CONFERENCE_ROOM_NAME @"cr1"
'chatroomforfriends' is conferance name and it contain 'cr1' room.
How do i fetch all room name in iOS ?
As per MUC XEP (0045) you can get list of all rooms by querying:
and you get the response as:
Details are mentioned in XEP-0045
This method returns all public rooms hosted by MUC Service. To get private rooms, or to get rooms of a specific user, you will have to write a plugin to handle your custom query (XMPP Way) or you can write a servlet (HTTP Way) in Openfire for this.