UDPSocket.send
js
UDPSocket.send(Object object)Sends a message to the specified IP and port.
Parameters
- Object object: input parameter
object property description:
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| address | string | Yes | The address to send the message to; can be any IP or domain name | |
| port | number | Yes | The port number to send the message to | |
| message | string/ArrayBuffer | Yes | The data to send | |
| offset | number | 0 | No | The offset of the data to send; only valid when message is an ArrayBuffer |
| length | number | message.byteLength | No | The length of the data to send; only valid when message is an ArrayBuffer |
