# TCPSocket.onConnect(function callback)
with Promise style call: Not supported
Mini Program plugin: Not supported
Listen in when a socket The event is triggered when the connection is successfully established
# parameter
# function callback
When a socket A callback function that triggers the event when the connection is successfully established