问题已解决
- 当前 Bug 的表现(可附上截图)
旧安卓机发起websocket连接出错
- 预期表现
正常连上websocket
- 复现路径
猜歌王小程序首页进入排位赛,点击任意一场排位赛即可复现
- 提供一个 Demo
let header = {
‘content-type’: ‘application/json’,
‘cgw-sessionId’: ‘8408C3D73C744887BFCB65121744B787’
}
wx.connectSocket({
url: ‘wss://cgw.wxapp.qubaotech.com/room/1.9.9’,
header: header,
success: () => {
},
fail: (res) => {
console.log(‘socket connnet error:’, res)
}
});
wx.onSocketError((res) => {
console.log(‘socket error:’, res)
})
wx.onSocketClose((res) => {
console.log(‘socket close:’, res)
})
wx.onSocketOpen((res) => {
console.log(‘socket open:’, res)
})
wx.onSocketMessage((res) => {
console.log(‘socket revieve:’, res)
});
-手机型号
Lenovo K50-t5
-安卓版本
5.1