diff options
author | Tercus <Terces86@gmail.com> | 2016-04-10 21:41:13 +0300 |
---|---|---|
committer | Tercus <Terces86@gmail.com> | 2016-04-10 21:41:13 +0300 |
commit | 201634dfbfb84cc368de86762c4c7e38aa138167 (patch) | |
tree | 5abb0906f16b2716ceee5346a07a19b54589f40d /docs/api.md | |
parent | 3bf5070bbcfcd081dedca20e9ad5b71ab933b264 (diff) |
Added torrent.on events to documentation
Added the other torrent.on events to the documentation.
Diffstat (limited to 'docs/api.md')
-rw-r--r-- | docs/api.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/api.md b/docs/api.md index 71f58ac..a720b2b 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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 |