UDPSocket.connect
js
UDPSocket.connect(Object object)Pre-connects to the specified IP and port. Must be used together with the write method.
Parameters
- Object object: input parameter
object property description:
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| address | string | Yes | The address to send messages to | |
| port | number | Yes | The port number to send messages to |
