微信小游戏开发文档
绑定一个系统随机分配的可用端口
绑定成功的端口号
const udp = wx.createUDPSocket() const port = udp.bind()
Copyright © 2012- Tencent. All Rights Reserved.