怎么一发送就报错"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-03-18 17:07
- 阅读:175
1 个回复
拨号上网
我也遇到这个问题了