部分手机或用户socket发送消息报错: sendSocketMessage:fail fail:send wcwss return fail code:-1
this.socketTask.send({
data: JSON.stringify(send_msg),
success:()=>{
this.send_content = ""
},
fail:err=>{
console.log(err) // {"errMsg":"sendSocketMessage:fail fail:send wcwss return fail code:-1"}
wx.showToast({
title:'发送失败',
icon:'none',
mask:true
})
}
});
找到解决方法了吗