# SocketTask.onError(function callback)

with Promise style call: Not supported

Mini Program plugin: Support

to monitor WebSocket Error event

# parameter

# function callback

WebSocket Callback function for error events

# parameter

# Object res
attribute type Introductions
errMsg string Error message