Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-07-16 06:24:48 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-07-16 06:24:48 +0300
commitcfe9062d0182b11b71634448fd0a311e9f886d4d (patch)
tree83b7da9944fcbc0c2409a6daee321441f46c85f1 /README.md
parentccda24798b434da055bbca7ba8990e0639ca5d2e (diff)
'wire' emit addr
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 91f5b31..f8d7b15 100644
--- a/README.md
+++ b/README.md
@@ -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)
})
```