# SocketTask.onError(function callback)

Listens on the WebSocket error event.

# Parameters

# function callback

The callback function for the WebSocket error event.

# Parameters

# Object res
Property Type Description
errMsg string Error message
点击咨询小助手