sendRoomList

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

corwin
Posts: 77
Joined: 17 Jul 2009, 08:19

sendRoomList

Postby corwin » 27 Jul 2010, 09:03

Is it possible on login not to send all the rooms to the user? I need to send him just the lobby to join it, he doesn't need to know all the rooms. As I have 9k+ rooms, I get very high traffic only in sending room lists on login...
User avatar
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Postby BigFIsh » 28 Jul 2010, 06:43

SFS2X has the features you want, but for the current SFS - you can use the '_server.sendGenericMessage(..)' function to send a custom room list to the client. The doc will have more info about this.
Smartfox's forum is my daily newspaper.
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 02 Aug 2010, 07:28

I would recommend to follow BigFish advice.
You will need to filter the Rooms on the server side and provide the client your own custom Room List.

By forging the Room List exactly the same way the Server would send it you can "fake" a limited Room List and save a lot of bandwidth.

The easiest way to learn how to send the fake Room List is by looking at the protocol in the Flash IDE turning on the debug flag of the SmartFoxClient class.
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 21 guests