WebRTC:数据传输问题

WebRTC: data transfer issue

我正在尝试使用 WebRTC 和 simple-peer 包发送 ArrayBuffer。我遇到了这些问题:

但在以下情况下一切正常:

我使用了 simple-peer 中的 peer.send(data)peer.on('data', callback) 函数,代码非常简单,所以我不知道出了什么问题。

根据 THAT 文章,存在邮件大小限制。 结论是:

All In all, the takeaway is that a 16 Kbyte message size is the one allowing for the highest throughput, while also being the most portable one. By the way, in some WebRTC tutorials and literature, the authors recommend using 16 Kbytes but they don’t tell you why. Well now you know.