Where did you find this method? chatService.listRooms(function(err,result))
If you use Android SDK - there is another method to retrieve a list of all rooms:
http://quickblox.com/developers/Android_XMPP_Chat_Sample#Retrieving_rooms
QBChatService.getInstance().getRooms(new RoomReceivingListener() {
@Override
public void onReceiveRooms(List<QBChatRoom> qbChatRooms) {
for (QBChatRoom room : qbChatRooms) {
Log.d(TAG, "Received room " + room.getName());
}
}
});
And it works as expected
Same for iOS:
[[QBChat instance] requestAllRooms];
- (void)chatDidReceiveListOfRooms:(NSArray *)_rooms{
NSLog(@"Did receive list of rooms: %@", _rooms);
}
Please provide a bit more info what programming language and SDK do you use