This version of Unity is unsupported.
Method group is Obsolete

NetworkTransport.ReceiveRelayEventFromHost

Obsolete The UNET transport will be removed in the future as soon a replacement is ready.

Declaration

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.