diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-12-29 19:45:44 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-12-29 19:45:44 +0300 |
commit | 35cb7380e9a108d73d1b79dbd0f0783644044ea4 (patch) | |
tree | 03cdc5494727066b27cec1b9853f0cce94a24704 /README.md | |
parent | 76c2019ebd6b799decc5bb94e52fc424825b067f (diff) | |
parent | 697f025afac515e0a1b94ffb03474c7bec83434f (diff) |
Merge pull request #547 from feross/torrent-pause
Add torrent.pause() API
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 |