diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-07-16 06:24:48 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-07-16 06:24:48 +0300 |
commit | cfe9062d0182b11b71634448fd0a311e9f886d4d (patch) | |
tree | 83b7da9944fcbc0c2409a6daee321441f46c85f1 /README.md | |
parent | ccda24798b434da055bbca7ba8990e0639ca5d2e (diff) |
'wire' emit addr
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -434,7 +434,8 @@ Here is a usage example: ```js var MyExtension = require('./my-extension') -torrent1.on('wire', function (wire) { +torrent1.on('wire', function (wire, addr) { + console.log('connected to peer with address ' + addr) wire.use(MyExtension) }) ``` |