Hello.
I have a question about the connection.
Example:
Alice calls Bob.
Bob receives a call and the conversation begins.
Bob loses Internet connection.
Alice gets Event "disconnected".
How do I restore the conversation, if Bob is reconnected to the network after 2 minutes (for example).
I try as follows.
When Alice gets Event "disconnected" I call 'createOffer' with iceRestart = true;
But Bob is not yet connected to the network. Appropriately, he will not get offer.
Then Alice gets event 'failed'. After that I again try to send offer, but after that 'oniceconnectionstate' does not catch events.
Perhaps I'm doing something wrong. You could describe the full script to reconnect?