Properties

new ClientDisconnectionReason()

Developers never istantiate the ClientDisconnectionReason class: only use its static properties.

Properties

constant static

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).

constant static

IDLE  string

Client was disconnected because it was idle for too long.

The connection timeout depends on the server settings.

constant static

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).

constant static

MANUAL  string

The client manually disconnected from the server.

The disconnect() method on the SmartFox class was called.

constant static

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.