subins2000 / p2pt

Simple WebRTC Peer 2 Peer connections using WebTorrent trackers as the signalling server. Use WebTorrent trackers for any kind of WebRTC app ! 🔥 Make WebRTC apps fast & easy ! 🚀⭐
https://WebDrop.Space
MIT License
565 stars 52 forks source link

Tracker-swarm to help with low quality public tracker servers #34

Open draeder opened 3 years ago

draeder commented 3 years ago

I created the following package that lets anyone create a tracker server and subsequent tracker server swarm around a shared application name: tracker-swarm. I built this to solve problems with unresponsive public tracker servers. I've tested deployments in Heroku and remixes on Glitch, and it seems to be working pretty well. It should work with P2PT. I've only tested with Bugout so far.

subins2000 commented 3 years ago

This is good. Nice work 🎉

draeder commented 3 years ago

Thanks.. It still needs work. I plan to soon release v2 which will eliminate the need for a swarm ID. All tracker-swarm nodes will participate in a global tracker swarm. When a peer with a new topic needs trackers, it will be given a set of random working trackers. When another peer for that topic joins, it will be given the same list of trackers, but if the list is short because some of the trackers have dropped (bad trackers), it will be given new random trackers as a replacement for the void. Kind of like how DHT works, sort of. I probably will need to submit a PR for P2PT, because it's all based on the infohash, and P2PT doesn't expose the infohash before announcing to trackers.