Our new developer documentation is now available. Please check it out!
Send Message
Sends arbitrary data to a list of target peers to an ODIN room. Every peer connected to the same room will be able to receive the message.
Tip
Use Bind to On Message Received node to receive messages sent from other peers.
Inputs
Name | Type | Description |
---|---|---|
Exec | exec | |
Room | Room | The room in which the message is sent. |
Targets | Array of int64 | List of targeted peer ids. If not specified, the message will be sent to all other peers in the same room. |
Data | Array of byte | Message data can be anything. This enables you to easily exchange data between peers directly over the Odin server. |
On Error | delegate | Delegate to handle errors when sending a message. |
On Success | delegate | Called when the message has been successfully sent. |
Outputs
Name | Type | Description |
---|---|---|
Exec | exec | |
On Response | exec | Called when the server has returned its response. Use the success value to check if the message has been successfully sent. |
Success | boolean | true if the message has been successfully sent. |