# TCPSocket.onError(function callback)

with Promise style call: Not supported

Mini Program plugin: Not supported

Listen is triggered when an error occurs

# parameter

# function callback

Callback function

# parameter

# Object res
attribute type Introductions
errMsg string Error message