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

Added torrent.on events to documentation #747

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

Always

Just for now

@@ -324,6 +324,26 @@ connections, nor does it pause the streams of existing connections or their wire

Resume connecting to new peers.

## `torrent.on('warning', function (err) {})`

Emitted when there was a warning during the parsing of the torrent.

## `torrent.on('error', function (err) {})`

Emitted when the parsing of the torrent encountered an error.

## `torrent.on('infoHash', function () {})`

Emitted when the infoHash of the torrent has been determined.

## `torrent.on('metadata', function () {})`

Emitted when the metadata of the torrent has been determined.

## `torrent.on('ready', function () {})`

Emitted when the torrent is ready.

## `torrent.on('done', function () {})`

Emitted when all the torrent's files have been downloaded
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.