diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-12-28 23:01:31 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-12-28 23:01:31 +0300 |
commit | 697f025afac515e0a1b94ffb03474c7bec83434f (patch) | |
tree | 1c297e7196cefac08b5ea97589b714b5459d9d50 /README.md | |
parent | bff953e21aa6faa9eaea2fd0cbd4e6086a39a8ba (diff) |
Add torrent.pause() API
Fix #543
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -425,6 +425,15 @@ client.add(magnetUri, function (torrent) { }) ``` +#### `torrent.pause()` + +Temporarily stop connecting to new peers. Note that this does not pause new incoming +connections, nor does it pause the streams of existing connections or their wires. + +#### `torrent.resume()` + +Resume connecting to new peers. + #### `torrent.on('done', function () {})` Emitted when all the torrent's files have been downloaded |