怎么一发送就报错"io.dcloud.uts.ArrayBuffer cannot be cast to java.lang.String" ,发文本没问题。代码如下:
const Buf = new ArrayBuffer(24);
this.socketTask?.send({
data: Buf,
success: (res : any) => {
console.log(res)
},
fail: (err : any) => {
console.log(err)
},
} as SendSocketMessageOptions)
鸿程
- 发布:2025-01-26 20:48
- 更新:2025-01-26 20:48
- 阅读:39
0 个回复