Developers never istantiate the ClientDisconnectionReason class: only use its static properties.
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).
Client was disconnected because it was idle for too long.
The connection timeout depends on the server settings.
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).
The client manually disconnected from the server.
The disconnect() method on the SmartFox class was called.
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.