在使用时需要额外配置参数吗?看文档里data支持String/ArrayBuffer,但是发送数据时无法发送,且服务器返回的数据,无法识别,使用插件市场的plus-websocket可以正常收发数据,但是断开后无法再连接,使用uni.connectSocket(OBJECT),可以正常连接,但是无法收发数据。使用的是google的ProtoBuf
![[已删除]](https://img-cdn-tc.dcloud.net.cn/account/identicon/bba8a75e9eb34431496fa6d017302568.png)
[已删除]
- 发布:2020-06-01 19:52
- 更新:2021-01-06 17:08
- 阅读:2459

3***@qq.com - woxixiaoai
遇到一样的问题,有大佬解决了么

3***@qq.com - woxixiaoai
兄弟,试试,改一下onMessage回调函数中的判断ArrayBuffer条件吧
Object.prototype.toString.call(arrayBuffer) === '[object ArrayBuffer]'