getRoomListFromGroup

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

aliko
Posts: 115
Joined: 09 Mar 2013, 16:26

getRoomListFromGroup

Postby aliko » 22 Sep 2015, 05:32

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
User avatar
Lapo
Site Admin
Posts: 19676
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: getRoomListFromGroup

Postby Lapo » 22 Sep 2015, 08:24

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.
Lapo
--
gotoAndPlay()
...addicted to flash games
aliko
Posts: 115
Joined: 09 Mar 2013, 16:26

Re: getRoomListFromGroup

Postby aliko » 22 Sep 2015, 08:31

Thank you very much Lapo, so it is listing me the array not asking server to list.
User avatar
Lapo
Site Admin
Posts: 19676
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: getRoomListFromGroup

Postby Lapo » 22 Sep 2015, 08:58

Yes.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 1 guest