# UDPSocket.connect(Object object)

Start from base library version 2.15.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Support, need to Mini Program base library version no less than 2.11.1

Preconnect to the specified IP and Port, you need to cooperate. write Methods used together

# parameter

# Object object

attribute type Default values Required Introductions
address string yes Address to send message
port number yes Port number to send message