Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'noPeers' event to torrents #775

Merged
merged 3 commits into from May 5, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Document 'noPeers' torrent event

  • Loading branch information
Jonathan Harper
Jonathan Harper committed Apr 27, 2016
commit 98248991cf7aa909044b5461969ed55ad4a9c8d9
@@ -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`
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.