v1.0.0
Latest
2022.3+

Interface IServerEvents

Interface representing your subscription to the Multiplay Server Events messages.

Namespace: Unity.Services.Multiplay
Syntax
public interface IServerEvents

Properties

Callbacks

The callbacks that the Multiplay Server Events will invoke when messages are received.

Declaration
MultiplayEventCallbacks Callbacks { get; }
Property Value
TypeDescription
MultiplayEventCallbacks

Methods

SubscribeAsync()

Subscribes to the messages. You do not need to call this if you are already subscribed.

Declaration
Task SubscribeAsync()
Returns
TypeDescription
System.Threading.Tasks.Task

An awaitable task.

UnsubscribeAsync()

Unsubscribes from the messages. You do not need to call this if you are already unsubscribed.

Declaration
Task UnsubscribeAsync()
Returns
TypeDescription
System.Threading.Tasks.Task

An awaitable task.