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:
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 9ff8e30..1e8fd44 100644
--- a/README.md
+++ b/README.md
@@ -436,7 +436,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)
})
```