The connection is established and opened, but when one peer (chrome PC) sends a message through the DataConnection the peer on iOS Safari doesn't activate the DataConnection.on("data", ...)_ event.
The serialization is set to JSON. This works for other devices, just not Safari.
From message sender:
var msg = peer.connect(userData.id, { serialization: "json"});
msg.on('open', function() {
console.log("opened and sent", msg)
msg.send('LetIn');
});
The connection is established and opened, but when one peer (chrome PC) sends a message through the DataConnection the peer on iOS Safari doesn't activate the DataConnection.on("data", ...)_ event.
The serialization is set to JSON. This works for other devices, just not Safari.
From message sender:
Message receiver (Safari):
console.log("opened and sent", msg)
was called but theconsole.log("received data ", data)
line was never called.