ClientDisconnectionReason
The possible reasons why a disconnection from the server occurred.
new ClientDisconnectionReason()
Developers never istantiate the ClientDisconnectionReason class: only use its static properties.
Properties
BAN string
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).
IDLE string
Client was disconnected because it was idle for too long.
The connection timeout depends on the server settings.
KICK string
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).
MANUAL string
The client manually disconnected from the server.
The disconnect() method on the SmartFox class was called.
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.