Page 1 of 1

getRoomListFromGroup

Posted: 22 Sep 2015, 05:32
by aliko
Hello,

When i use getRoomListFromGroup function, is this listing me that prepared data from client api, or is it request to server for response?

var roomList:Array = sfs.roomManager.getRoomListFromGroup(games_grup);

Best Regards

Re: getRoomListFromGroup

Posted: 22 Sep 2015, 08:24
by Lapo
Hi,
it is listing all of the Rooms in that Group known to the client.

There is no need to ask the server because the server proactively sends update for every change (new room, deleted room) in that Group, provided that the User is subscribed to it. In other words client and server are always in synch.

Hope it helps.

Re: getRoomListFromGroup

Posted: 22 Sep 2015, 08:31
by aliko
Thank you very much Lapo, so it is listing me the array not asking server to list.

Re: getRoomListFromGroup

Posted: 22 Sep 2015, 08:58
by Lapo
Yes.