wx.connectSocket连接服务器失败代码片段: new Promise(function () {
wx.connectSocket({
url: 'ws://内网IP:端口/Socket',
data: {
"data": "hello lyshark"
},
header: {
'content-type': 'text/plain; charset=UTF-8'
},
protocols: ['protocol1'],
method: "GET",
})
})
报错: [图片] 描述:一直找不到问题根源,求解