Version: 2017.1

NetworkTransport.ReceiveRelayEventFromHost

Switch to Manual
public static Networking.NetworkEventType ReceiveRelayEventFromHost (int hostId, out byte error);

Parameters

hostId The host ID to check for events.
error Error (can be cast to NetworkError for more information).

Returns

NetworkEventType Type of event returned.

Description

Polls the host for the following events: NetworkEventType.ConnectEvent and NetworkEventType.DisconnectEvent. Can only be called by the relay group owner.