Page 1 of 1

Retrieves the list of Rooms in group

Posted: 07 Sep 2015, 10:51
by hcdst
i want to Retrieves the list of Rooms in a specified group. all room with this group is created by getApi().createroom().
try with as3 sfs.getRoomListFromGroup() result is only the room joined.

Can i do it?

Re: Retrieves the list of Rooms in group

Posted: 07 Sep 2015, 15:03
by Lapo
The getRoomListFromGroup() method searches all Rooms known to the client matching the provided groupId.
It should return what you expect.

Are you sure it isn't? If so, can you give us the details, including Server and API version?

Thanks

Re: Retrieves the list of Rooms in group

Posted: 08 Sep 2015, 01:07
by hcdst
I mean : i have 10 room(created by extension) with same groupId is "game". So, how can i get all these room in client.
getRoomListFromGroup() only return rooms client joined not all.
I using the lastest version i,ve just down at homepage
Thks for help

Re: Retrieves the list of Rooms in group

Posted: 08 Sep 2015, 03:43
by hcdst
thks Lapo, my issue is solved when i add "game" to default room group in admintool or subcribe "game" group before request room list. details you posted here http://www.smartfoxserver.com/forums/viewtopic.php?t=8090