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

API improve #750

Merged
merged 2 commits into from May 2, 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

Prev

Remove extra

  • Loading branch information
DiegoRBaquero committed Apr 16, 2016
commit b28e8d637dcbddacdc3981adb524dd9d41f9c431
@@ -401,18 +401,18 @@ information on how to define a protocol extension.

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

Emitted when the info hash of the torrent has been determined. Can only be accessed synchronously as client.add calls onTorrent callback after 'infoHash' event has been emitted.
Emitted when the info hash of the torrent has been determined.

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

Emitted when the metadata of the torrent has been determined. This includes the full
contents of the .torrent file, including list of files, torrent length, piece hashes,
piece length, etc. Can only be accessed synchronously as client.add calls onTorrent callback after 'metadata' event has been emitted.
piece length, etc.

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

Emitted when the torrent is ready to be used (i.e. metadata is available and store is
ready). Can only be accessed synchronously as client.add calls onTorrent callback after 'ready' event has been emitted.
ready).

# File API

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.