mafintosh / webrtc-swarm

Create a swarm of p2p connections using webrtc and a signalhub
MIT License
380 stars 60 forks source link

https://github.com/feross/simple-peer/issues/336 #42

Closed OllieJones closed 3 years ago

OllieJones commented 3 years ago

Hi, I'm offering this pull request. It adds a new peer-connecting event, emitted as soon as peers are available to allow delivery of 'track' events.

I've also updated vars to lets and consts to bring the code in line with ES6.

OllieJones commented 3 years ago

doh! a mistake. Sorry.