News for hackers. Stuff that matters.
Re:PeerJS – Simple peer-to-peer with WebRTC by ScottyFillups on Wednesday January 06, 2021 @12:20PM (#25659838)
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

Re:PeerJS – Simple peer-to-peer with WebRTC by wintorez on Wednesday January 06, 2021 @12:59PM (#25660309)
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.
Re:PeerJS – Simple peer-to-peer with WebRTC by depressedpanda on Wednesday January 06, 2021 @02:21PM (#25661149)
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.

Re:PeerJS – Simple peer-to-peer with WebRTC by feross on Wednesday January 06, 2021 @09:10PM (#25666395)
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.