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>2016-05-05 16:12:58 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-05-05 16:12:58 +0300
commitf09c24ab46b6748c6948eedb8af85075ca71692f (patch)
tree330c1078c2a7bf36b9575d8de9059825cff60f29 /docs/api.md
parent43aeb613cadb0fa986902f20c66f64e76cc427a4 (diff)
parent97130eb7de2db1eac9f91482ca92b2da3b975eab (diff)
Merge pull request #775 from harperj/no-peers
Add 'noPeers' event to torrents
Diffstat (limited to 'docs/api.md')
-rw-r--r--docs/api.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/api.md b/docs/api.md
index 6c47901..a4ebe55 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -422,6 +422,10 @@ See the `bittorrent-protocol`
[extension api docs](https://github.com/feross/bittorrent-protocol#extension-api) for more
information on how to define a protocol extension.
+## `torrent.on('noPeers', function (announceType) {})`
+
+Emitted whenever a DHT or tracker announce occurs, but no peers have been found. `announceType` is either `'tracker'` or `'dht'` depending on which announce occurred to trigger this event. Note that if you're attempting to discover peers from both a tracker and a DHT, you'll see this event separately for each.
+
# File API
## `file.name`