com.onlineobject.objectnet Namespace

NetworkGlobalEvents Methods

The NetworkGlobalEvents type exposes the following members.

Methods


  Name Description
Public method Static member Instance
Gets the singleton instance of NetworkGlobalEvents. If the instance doesn't exist, logs a warning during play mode.
Public method OnClientConnected
Called when a client successfully connects to the server.
Public method OnClientDisconnected
Called when a client disconnects from the server.
Public method OnClientLoginFailed
Called when a client's login attempt fails.
Public method OnClientLoginSucess
Called when a client's login attempt is successful.
Public method OnConnected
Called when a client successfully connects.
Public method OnConnectedOnRelay
Called when a client connects on a relay server.
Public method OnConnectionFailed
Called when a connection attempt fails.
Public method OnDisconnected
Called when a client disconnects.
Public method OnLobbyCreationFailed
Called when a lobby creation attempt fails.
Public method OnLobbyCreationSucess
Called when a lobby is successfully created.
Public method OnLobbyJoinFailed
Called when an attempt to join a lobby fails.
Public method OnLobbyJoinSuccess
Called when joining a lobby is successful.
Public method OnLoginFailed
Called when a login attempt fails.
Public method OnLoginSucess
Called when a login attempt is successful.
Public method OnMessageReceived
Called when a message is received from a client.
Public method OnServerRestarted
Called when the server is restarted.