# TCPSocket.connect(Object options)

with Promise style call: Not supported

Mini Program plugin: Not supported

Start a connection on the given socket

# parameter

# Object options

attribute type Default values Required Introductions
address String yes The address to which the socket is connected
port Number yes The port to which the socket is connected

# sample code


  const tcp = wx.createTCPSocket()
  tcp.connect({address: '192.168.193.2', port: 8848})