feat(p2p): p2p torrents replication

This commit is contained in:
Alexey Kasyanchuk
2018-03-12 15:55:30 +03:00
parent 223fe8c1ab
commit db8a8cbd36
5 changed files with 152 additions and 68 deletions

View File

@ -64,6 +64,7 @@ class p2p {
// new peer with peer exchange
this.on('peer', (peer) => {
console.log('got peer exchange', peer)
this.add(peer)
})