# UDPSocket.onClose(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 Close Event

# parameter

# function callback

Close event callback function