Code: Select all
onLogin
Dispatched after the login to SmartFoxServer has been attempted.
The params object contains the following parameters.
* resObj:Object - the response object sent by the server.
The response object contains the following parameters.
* success:Boolean - the login result: true if the login was successful; false if login failed. The reason for failure is explained in the error parameter.
* name:String - your current username. The server sends the username back to the client because not all usernames are valid (for example those containing bad words may have been filtered).
* error:String - the error description sent by the server (in case of login failed).Code: Select all
onLogin
Dispatched after the login to SmartFoxServer has been attempted.
The params object contains the following parameters.
* success:Boolean - the login result: true if the login was successful; false if login failed. The reason for failure is explained in the error parameter.
* name:String - your current username. The server sends the username back to the client because not all usernames are valid (for example those containing bad words may have been filtered).
* error:String - the error description sent by the server (in case of login failed).