Interface IGenericMessageHandler
Namespace: Unity.Cloud.Presence
Syntax
public interface IGenericMessageHandler
Properties
IsReady
Indicates if the message handler is ready to send and receive messages.
Declaration
bool IsReady { get; }
Property Value
| Type | Description |
|---|---|
| Boolean | True when the NetcodeService client is started, false otherwise. |
Methods
SendGenericMessage(String)
Sends a generic message.
Declaration
bool SendGenericMessage(string data)
Parameters
| Type | Name | Description |
|---|---|---|
| String | data |
Returns
| Type | Description |
|---|---|
| Boolean | true (Successful) or false (Unsuccessful) |
Events
MessageReceived
Indicates when a new message is received.
Declaration
event Action<ulong, string> MessageReceived
Event Type
| Type | Description |
|---|---|
| Action<UInt64, String> |