Skip to content

Commit a22da27

Browse files
authored
FIX docs of on('peer')
1 parent 4b5299b commit a22da27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ client.on('update', function (data) {
142142
console.log('number of leechers in the swarm: ' + data.incomplete)
143143
})
144144

145-
client.once('peer', function (addr) {
146-
console.log('found a peer: ' + addr) // 85.10.239.191:48623
145+
client.once('peer', function (peer) {
146+
console.log('found a peer: ' + peer) // object
147147
})
148148

149149
// announce that download has completed (and you are now a seeder)

0 commit comments

Comments
 (0)