katiy
katiy
  • 发布:2023-01-31 10:05
  • 更新:2023-01-31 11:57
  • 阅读:412

【报Bug】hbuilderX更新后,环信 websocket连不上,发送消息失败

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 10 专业版21H2

HBuilderX版本号: 3.6.18

操作步骤:

let id = WebIM.conn.getUniqueId();
let msg = new WebIM.message(msgType.TEXT, id);
//console.log(this.userMessage)
//console.log(this.username)
//console.log(this.username.myName)
//console.log(this.getSendToParam())
//console.log( this.chatType)
msg.set({
msg: this.userMessage,
from: this.username.myName,
to: this.getSendToParam(),
roomType: false,
chatType: this.chatType,
success(id, serverMsgId) {
let obj = {
msg: msg,
type: msgType.TEXT,
};
obj.msg.id = serverMsgId
me.saveSendMsg(obj);

      //console.log("成功了");  
      // 关闭表情弹窗  
      me.$parent.cancelEmoji()  

      me.$emit("inputFocused");  
      disp.fire("em.chat.sendSuccess", id, me.userMessage);  
    },  
    fail(id, serverMsgId) {  
        console.log(id)  
        console.log(serverMsgId)  
      console.log("失败了");  
    },  
  });

预期结果:

发送成功

实际结果:

websocket disconnected

bug描述:

app使用的有环信sdk,hbuilderX更新之后,发送消息,发不了,websocket 连不上了,之前的版本就可以。
环信sdk uniapp-sdk-4.1.2
发消息 错误返回码是 websocket disconnected

2023-01-31 10:05 负责人:无 分享
已邀请:
DCloud_Android_ST

DCloud_Android_ST

HX3.6.18+ 云打包机已更新修复该问题。请重新云打包修复该问题

  • katiy (作者)

    好的,感谢

    2023-02-01 09:28

要回复问题请先登录注册