feross / feross/simple-peer

is it impossible to make a simple webrtc connection reliably!?

Open
#781 7 comments 17 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.8k
Forks
983
PR merge metrics
No merged PRs in 30d

Description

```
simplepeer.min.js:6 Uncaught Error: Connection failed.
at p._onConnectionStateChange (simplepeer.min.js:6)
at RTCPeerConnection._pc.onconnectionstatechange (simplepeer.min.js:6)
```

happens in all browsers, on all my computers, all of my friends computers, all webrtc projets, and even on localhost. usually it connects fine, but sometimes it just gets stuck.

this is not a bug with simple-peer, this is a bug with webrtc. i came here expecting simple-peer to have retries built in or something to solve this. am i the only person with this issue or does everyone just accept it??? it's so annoying and has been happening with many projects for many years now. .

even your simple demo where you copy/paste the signals will fail sometimes if you do it enough times.
![image](https://user-images.githubusercontent.com/1005136/106972569-1c37d400-671f-11eb-9b58-edc2dc1551f5.png)

i dare you to try any webrtc demo about 20 times, it will get stuck.

sorry for venting my frustrations here but i've been working on a webrtc project off and on for about 3 years now and i still can't connect reliably. any help is appreciated

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.