Method InvokeOnTransportEvent
InvokeOnTransportEvent(NetworkEvent, ulong, ArraySegment<byte>, float)
Invokes the OnTransportEvent. Invokation has to occur on the Unity thread in the Update loop.
Declaration
protected void InvokeOnTransportEvent(NetworkEvent eventType, ulong clientId, ArraySegment<byte> payload, float receiveTime)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkEvent | eventType | The event type |
| ulong | clientId | The clientId this event is for |
| ArraySegment<byte> | payload | The incoming data payload |
| float | receiveTime | The time the event was received, as reported by Time.realtimeSinceStartup. |