simple-peer icon indicating copy to clipboard operation
simple-peer copied to clipboard

Re Connected event

Open hatimtekri opened this issue 4 years ago • 1 comments

Error connection failed event occuring perfectly but in some case their is no disturbance in communication i mean user have not realized any disturbance due to this error So that's mean it have reconnect very quickly So what is the even t for capturing re connect logs Please help

hatimtekri avatar Sep 17 '21 08:09 hatimtekri

Hi, having the same issue.

Error: Connection failed. at makeError (index.js:17:1) at Peer._onConnectionStateChange (index.js:654:1) at RTCPeerConnection.Peer._pc.onconnectionstatechange (index.js:119:1)

Sometimes, if I disconnect and destroy the connection before leaving and then reconnect or try to create a new connection, I get the above error.

Someone whos better at this maybe know the issue?. My guess is because one peer emits a new offer/answer but the second peer does not do this and they can be connected after the session got destroyed?

Mihai-github avatar May 12 '22 15:05 Mihai-github