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:
authorTristan Davies <github@tristan.io>2015-06-25 02:22:45 +0300
committerTristan Davies <github@tristan.io>2015-06-25 05:00:36 +0300
commit2ecfcc017ed273861bbf5283e2c37414515ab27c (patch)
tree511680eecbcd260e3522a11194ec9e7b01b7bd5d /README.md
parentb581c77088e5c21b735de5f2fb6c36df26cad709 (diff)
extension support
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 56b2676..0c4cf68 100644
--- a/README.md
+++ b/README.md
@@ -266,7 +266,8 @@ If `opts` is specified, then the default options (shown below) will be overridde
rtcConfig: Object, // RTCPeerConnection configuration object (default=STUN only)
storage: Function, // custom storage engine, or `false` to use in-memory engine
tracker: Boolean, // Whether or not to enable trackers (default=true)
- wrtc: {} // custom webrtc implementation (in node, specify the [wrtc](https://www.npmjs.com/package/wrtc) package)
+ wrtc: {}, // custom webrtc implementation (in node, specify the [wrtc](https://www.npmjs.com/package/wrtc) package)
+ onWire: Function // function to be called on each new wire. Use this to specify [custom bittorrent extensions](https://www.npmjs.com/package/bittorrent-protocol#extension-api)
}
```