Package | com.smartfoxserver.v2.requests |
Class | public class LogoutRequest |
Inheritance | LogoutRequest com.smartfoxserver.v2.requests.BaseRequest |
The user is notified of the logout operation by means of the logout event. This doesn't shut down the connection, so the user will be able to login again in the same Zone or in a different one right after the confirmation event.
See also
Method | Defined By | ||
---|---|---|---|
Creates a new LogoutRequest instance. | LogoutRequest |
LogoutRequest | () | Constructor |
public function LogoutRequest()
Creates a new LogoutRequest instance. The instance must be passed to the SmartFox.send() method for the request to be performed.
See also
private function someMethod():void { sfs.addEventListener(SFSEvent.LOGOUT, onLogout); // Logout sfs.send(new LogoutRequest()); } private function onLogout(evt:SFSEvent):void { trace("Logout executed!"); }