-
Creator 版本: 2.4.x
-
目标平台: 微信小游戏
报错提示
VM1350 asdebug.js:10 同时最多发起 5 个 socket 请求,更多请参考文档:https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html(env: Windows,mg,1.06.2209070; lib: 2.30.2)
使用:
this._socket = new WebSocket(url);
//每次连接之前都会判断并调用 close, 多次连接后,必现微信报错!
this._socket.close();