unity3d-client-connection-states

*We assure you that we do not spam. You may receive occasional emails from us.
 You can always unsubscribe.
Unity3D

Unity3D Client Connection States

public const byte DISCONNECTED = 0;
public const byte CONNECTED = 1;
public const byte CONNECTING = 2;

DISCONNECTED

This state indicates that the client is disconnected from the server. It can happen if the client looses internet connectivity or if the application calls disconnect. In this state, the application is allowed to call connect.

CONNECTED

The state indicates that the client is connected to the appwarp server. A call to connect in this state will fail. The application must call disconnect first if it wants to (re)connect with a different name for example.

CONNECTING

This is a transient state the client is in just after calling connect and before moving to either a connected or disconnected state. A call to (re)connect in this state will fail.