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.
Inputs
| Name | Type | Description | 
|---|---|---|
| Exec | exec | |
| Room | object | The room in which the message is sent. | 
| Targets | array | List of targeted peer ids. If not specified, the message will be sent to all other peers in the same room. | 
| Data | array | 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 successvalue to check if the message has been successfully sent. | 
| Success | boolean | trueif the message has been successfully sent. |