# UDPSocket.close()
with Promise style call: Not supported
Mini Program plugin: Support, need to Mini Program base library version no less than 2.11.1
Stop UDP Socket Instance, equivalent to destruction. After the shutdown, UDP Socket Instance can no longer send messages, and each time the UDPSocket.send
Will trigger an error event, and message The event callback function also does not execute again. in UDPSocket
Instance will be created by the Native Strong references, ensuring that they are not GC。 in UDPSocket.close
Removes a strong reference to it, and lets the UDPSocket Instance compliance GC。