onMessage(data){
let unBytes = chat_pb.SocketReturn.deserializeBinary(data.data);
let res = chat_pb.SocketReturn.toObject(true,unBytes)
switch (res.action){
case 'login':
if(res.code == 200){
// 用户上线
this.isOnline = true
this.sendPing()
}
break;
}
}
而plus-websocket正常
m***@protonmail.com (作者)
收不到的后台给序列化了
2022-03-01 17:26