Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkTransport.ReceiveRelayEventFromHost

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

Parameters

hostId The hostId to check for events.
error Error (can be casted 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.