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:
authorJonathan Harper <jharper@eecs.berkeley.edu>2016-04-27 07:05:00 +0300
committerJonathan Harper <jharper@eecs.berkeley.edu>2016-04-27 07:12:26 +0300
commit98248991cf7aa909044b5461969ed55ad4a9c8d9 (patch)
treedfb60918a99f34c5de24081986b70b5c79e76a56
parentcd7fcb2d797cccf9507557493146e6a498f16861 (diff)
Document 'noPeers' torrent event
-rw-r--r--docs/api.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/api.md b/docs/api.md
index b0e3eba..99e3814 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -413,6 +413,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`