Immerse SDK
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Client.SendMessage

public void SendMessage(Enum type, Byte[] payload)

Send a message over the network

Parameter Description
type The message type as specified in Custom Messages
payload The content of the message

public void SendMessage(Enum type, MessageId id, Byte[] payload)

Send a message over the network

Parameter Description
type The message type as specified in Custom Messages
id An ID to identify this message
payload The content of the message

public void SendMessage(IMessageDefinition messageDefinition, Byte[] payload)

Send a message over the network

Parameter Description
messageDefinition
payload The content of the message

public void SendMessage(IMessageDefinition messageDefinition, MessageId id, Byte[] payload)

Send a message over the network

Parameter Description
messageDefinition
id An ID to identify this message
payload The content of the message

public void SendMessage(UInt16 type, Byte[] payload)

Send a message over the network

Parameter Description
type The message type as specified in Custom Messages
payload The content of the message

public void SendMessage(UInt16 type, MessageId id, Byte[] payload)

Send a message over the network

Parameter Description
type The message type as specified in Custom Messages
id An ID to identify this message
payload The content of the message