收藏
回答

WXTCPSocket创建2个 就报错. 如何解决?

WX.CreateTCPSocket();

WXTCPSocket创建第二个时必报错. 我看api备注是可以5分钟内创建20个的. 求解决

Error: [TCPSocket] created too much.

    at new n (VM256 WAGame.js:1)

    at new Hz (VM256 WAGame.js:1)

    at Object.Rre (VM256 WAGame.js:1)

    at k (VM256 WAGame.js:1)

    at Object.p (VM256 WAGame.js:1)

    at Object.t [as createTCPSocket] (VM276 WAGameSubContext.js:1)

    at Object.WX_CreateTCPSocket (index.js:11)

    at _WX_CreateTCPSocket (webgl.wasm.framework.unityweb.js:4)

    at <anonymous>:wasm-function[12592]:0x3da799

    at <anonymous>:wasm-function[12558]:0x3d8ff5(env: Windows,mg,1.06.2402040; lib: 3.2.5)

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容