You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in the title, I have a utility function that allows users to 'refresh' a room when experiencing connectivity issues. This is the function code:
events.js:139 Uncaught Error: Connection failed.
at Peer._onConnectionStateChange (index.js:699:28)
at Peer._pc.onconnectionstatechange (index.js:118:12)
and the recipient
events.js:139 Uncaught Error: Connection failed.
at Peer._onConnectionStateChange (index.js:699:28)
at Peer._pc.onconnectionstatechange (index.js:118:12)
_onConnectionStateChange @ index.js:699
Peer._pc.onconnectionstatechange @ index.js:118
Show 2 more frames
Show less
2index.js:184 Uncaught (in promise) Error: cannot signal after peer is destroyed
at Peer.signal (index.js:184:39)
at WebSocket.eval (nostr.js:179:26)
signal @ index.js:184
eval @ nostr.js:179
Show 2 more frames
Show less
3events.js:139 Uncaught Error: Connection failed.
at Peer._onConnectionStateChange (index.js:699:28)
In this case I'm running the sender / receiver locally. Both on chrome.
The text was updated successfully, but these errors were encountered:
Does introducing a wait time (5 seconds, for example) between disconnection/reconnection help? I'm able to induce similar behavior manually in my own apps and it seems to work well enough. I'm thinking that the synchronous nature of the operation as it's implemented in your refreshRoom code may not be allowing the libraries and/or browser enough time to refresh things.
As mentioned in the title, I have a utility function that allows users to 'refresh' a room when experiencing connectivity issues. This is the function code:
and this is the error for the caller:
and the recipient
In this case I'm running the sender / receiver locally. Both on chrome.
The text was updated successfully, but these errors were encountered: