Yew-WebRTC-Chat
Yew-WebRTC-Chat copied to clipboard
Investigate connection issue
Sometimes the connection can't be establish while it should even without TURN server
It might be due to some ISP blocking packets and being late to realizing it. One solution could be to recreate the same offer and answer and redoing ice connection. I need to make sure they are exactly the same otherwise without signaling the ports will change each time and the peers won't find a valid connection. That might not even be possible. I need to check this out.
Otherwise another solution could be to:
catch exceptions thrown by the send method and restarting the whole handshake from scratch. It seemed to be a pretty robust solution.