com.onlineobject.objectnet Namespace

UnityTransport..::..Configure Method

Configures the event handlers for client connection, disconnection, and message reception.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public void Configure(

	Action<ITransportClient> onClientConnected,

	Action<ITransportClient> onClientDisconnected,

	Action<ITransportClient, byte[]> onMessageReceived

)

Parameters

onClientConnected
Type: Action<(Of <(<'ITransportClient>)>)>
The action to perform when a client connects.
onClientDisconnected
Type: Action<(Of <(<'ITransportClient>)>)>
The action to perform when a client disconnects.
onMessageReceived
Type: Action<(Of <(<'ITransportClient, array<Byte>[]()[][]>)>)>
The action to perform when a message is received from a client.