Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If anyone is looking for an alternative to PeerJS, I highly recommend simple-peer by feross: https://github.com/feross/simple-peer

I created multi party P2P audio/video chat in ~200 lines of code a while back, here it is: https://github.com/ScottyFillups/p2pchat (see room.js and all the files under client/)

Demo page is here: https://scottyfillups.io/p2pchat



I love his work. His "webtorrent" is also great. I always wondered if anyone is using it on their website to lower the cost of distributing large files.


How would you say simple-peer compares to PeerJs? Pros/cons?

I've had issues with PeerJs in that connections are randomly dropped after a while, and couldn't figure out why.


Thanks for mentioning simple-peer! It's been humbling to see all the clever ways that people have used it to build clever and interesting apps.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: