Packagecom.smartfoxserver.v2.util
Classpublic class ClientDisconnectionReason
InheritanceClientDisconnectionReason Inheritance Object

The ClientDisconnectionReason class contains the costants describing the possible reasons why a disconnection from the server occurred.



Public Constants
 ConstantDefined By
  BAN : String = ban
[static] Client was banned from the server.
ClientDisconnectionReason
  IDLE : String = idle
[static] Client was disconnected because it was idle for too long.
ClientDisconnectionReason
  KICK : String = kick
[static] Client was kicked out of the server.
ClientDisconnectionReason
  MANUAL : String = manual
[static] The client manually disconnected from the server.
ClientDisconnectionReason
  UNKNOWN : String
[static] A generic network error occurred, and the client is unable to determine the cause of the disconnection.
ClientDisconnectionReason
Constant Detail
BANConstant
public static const BAN:String = ban

Client was banned from the server. Banning can occur automatically (i.e. for flooding, if the flood filter is active) or due to the intervention of a user with enough privileges (i.e. an administrator or a moderator).

IDLEConstant 
public static const IDLE:String = idle

Client was disconnected because it was idle for too long. The connection timeout depends on the server settings.

KICKConstant 
public static const KICK:String = kick

Client was kicked out of the server. Kicking can occur automatically (i.e. for swearing, if the words filter is active) or due to the intervention of a user with enough privileges (i.e. an administrator or a moderator).

MANUALConstant 
public static const MANUAL:String = manual

The client manually disconnected from the server. The disconnect method on the SmartFox class was called.

UNKNOWNConstant 
public static const UNKNOWN:String

A generic network error occurred, and the client is unable to determine the cause of the disconnection. The server-side log should be checked for possible error messages or warnings.