# UDPSocket.onError(function callback)
with Promise style call: Not supported
Mini Program plugin: Support, need to Mini Program base library version no less than 2.11.1
Listen for error events
# parameter
# function callback
Callback function for error events
# parameter
# Object res
attribute | type | Introductions |
---|---|---|
errMsg | string | Error message |