Function calls behind the scenes?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Sparticus
Posts: 227
Joined: 27 Feb 2006, 17:44
Location: Canada
Contact:

Function calls behind the scenes?

Postby Sparticus » 27 Feb 2006, 21:22

Hello,

I read over the docs to try and find an answer tomy question... but couldn't find it...

I noticed some function calls happen automattically without you calling them. For example, I noticed the function "onRoomListUpdate" is called automattically.... what do i do on my end to get that function called?

From what I understand from the docs... here are the steps :

1.) First connect to the server (smartfox.connect)
2.) Once connected, login to server (smartfox.login)
3.) Server replys and you run function "smartfox.onLogin"
4.) Once logged in, I can start to talk with the server...

So, where in the above steps does the room list get sent to me? It looks like just after I connect to the server, the server sends notification that I connected... and also sends a list of the available rooms? Is that correct? or does it automattically send the list of rooms after the user logs in?

If this is documented somewhere I have no problems reading all about it if you can point me to the link

Thanks a bunch in advance!
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 27 Feb 2006, 21:55

the roomList is automatically requested by the client side API as soon as you successfully log into a Zone.

So, yes this is a little hidden in the API :)
Lapo
--
gotoAndPlay()
...addicted to flash games
Sparticus
Posts: 227
Joined: 27 Feb 2006, 17:44
Location: Canada
Contact:

Postby Sparticus » 27 Feb 2006, 21:56

Awsome. Thanx again! :D

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 91 guests