diff options
author | Jonathan Harper <jharper@eecs.berkeley.edu> | 2016-04-27 07:05:00 +0300 |
---|---|---|
committer | Jonathan Harper <jharper@eecs.berkeley.edu> | 2016-04-27 07:12:26 +0300 |
commit | 98248991cf7aa909044b5461969ed55ad4a9c8d9 (patch) | |
tree | dfb60918a99f34c5de24081986b70b5c79e76a56 /docs | |
parent | cd7fcb2d797cccf9507557493146e6a498f16861 (diff) |
Document 'noPeers' torrent event
Diffstat (limited to 'docs')
-rw-r--r-- | docs/api.md | 4 |
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` |