I'm trying to send ArrayBuffer using WebRTC and simple-peer
package. And I got these issues:
- Another browser receives several events with Uint8Arrays which are part of the original ArrayBuffer. Length of each Uint8Array is not greater than 262528. It happens when I send large ArrayBuffer from chrome to chrome.
- I get
TypeError: The expression cannot be converted to return the specified type.
error on sender browser when I send large ArrayBuffer from firefox to chrome.
But everything is fine when:
- ArrayBuffer length is small.
- when I send data from chrome to firefox.
I use peer.send(data)
and peer.on('data', callback)
functions from simple-peer
and code is really simple so I have no idea what's going wrong.