SFSEventType USER_DISCONNECT
Posted: 07 Jun 2011, 02:30
when USER_DISCONNECT event is called, this custom handler-- zone and room . why zone handler first ,then room handler ? can change the order of these two ? thx
SmartFoxServer support forums
https://forums.smartfoxserver.com:443/
thanks a lot,Lapo.I see it now.Lapo wrote:Zone events are usually fired first, because the Zone has control over the Rooms not the other way around.
And no it's not possible to change it.
BTW: there should be no dependency between events in a Zone and its Rooms, if so you might consider rethinking your code to avoid that.
Events are asynchronous and wanting to synchronize them via code dependencies is not a good a idea. My 2C
hi Lapo ,yes i'm talking about server side event.Lapo wrote:Are you talking about server side events?
You will get the disconnection event. On the client nothing
Lapo wrote:As I said, and you can check the docs for all the details, you get the DISCONNECT event. The event will then give you all the details about which rooms the User had joined etc...
Lapo wrote:1) No, logout simply means you leave the current zone but you don't drop the connection
2) Check the javadoc, a Room object exposes a getExtension() method
http://docs2x.smartfoxserver.com/api-do ... oc/server/