I have a problem with sending messages between peer through the function sendDataP2P (like a chat).
Once the call between 2 peers is established, it seems that the peer receiving the call hasn't ready the data channel (to receive message). In fact, if the peer caller sends a message, he receives the following error message:
'Attempt to use data channel to the "id of the peer called" before it's ready to send' and the message is not send.
Instead, if the peer called sends a message to the peer calling, everything works correctly.
Thanks for your attention.
Roberto R.