Internal Event :: logOut
Availability:
SmartFoxServer PRO 1.5.5
Event name:
logOut
Description:
This event is fired when a user is logged out of the current Zone.
The event is available for both Zone
Level and Room
Level extensions.
Properties:
name | description | type | |
roomIds | A list containing all the room ID(s) where the user was connected (Zone Level only) | Java native array (*) | |
playerIndexes | A list containing the playerIndex for each room where the user was connected (Zone level only) | Java native array (*) | |
uid | The id of the user that was lost | java.lang.String(*) | |
chan | The socket channel representing the client connection. | Object | |
oldPlayerIndex | The playerIndex assigned for the current room (Room Level only) | java.lang.String(*) |
(*) A note on data types: the parameters passed by the server events to the running extensions are all Java types.
You can use them transparently in Actionscript or cast them to AS native data types.
» javadoc for -> java.lang.String
» javadoc for -> Java array
» javadoc for -> SocketChannel
Example:
// Handle server events function handleInternalEvent(evtObj) { if (evtObj.name == "logOut") { var uid = evtObj.uids trace ("User with id: " + uid + " logged out") } }
See also: