Open henworx-angelone opened 4 years ago
Did you solve this? I am still having this issue.
So is not a fix but for my case forcing the connection serialization type to "json" works.
let conn = this.peer.connect(destPeerId) conn.serialization = "json"
So far Peer.js works in react-native. I have only the problem as soon as I want to send a message that the connection is broken and gives me the following error:
DC #: dc_6igjvuv7fhg Error when sending: (TypeError) Data must be either string, ArrayBuffer, or ArrayBufferView.
Tested with RN 6.0.0 - 6.2.0.
In addition, although I can establish a connection, I do not get feedback from the connection.
I don't have these problems in the browser.
My installed packages:
when i send a message from the browser it also arrives, but only when i start the connection from the browser