Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike <kenr.mk@gmail.com>2016-03-16 15:20:24 +0300
committerMike <kenr.mk@gmail.com>2016-03-16 15:20:24 +0300
commita20885962fef841f3f42138d2d2c9ed49a8adfac (patch)
tree967214f026c1b0836d026988fc331a000074a951 /README.md
parent7e3b05c4e04cc2e8cca32437ce6172a123b985ad (diff)
added Buffer and stream.Readable for client.seed
Added few missing details from create-torrent
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 5aaca16..efcb59f 100644
--- a/README.md
+++ b/README.md
@@ -325,7 +325,8 @@ Start seeding a new torrent.
- path to the file or folder on filesystem (string) (Node.js only)
- W3C [File](https://developer.mozilla.org/en-US/docs/Web/API/File) object (from an `<input>` or drag and drop)
- W3C [FileList](https://developer.mozilla.org/en-US/docs/Web/API/FileList) object (basically an array of `File` objects)
-- Node [Buffer](https://nodejs.org/api/buffer.html) object (works in [the browser](https://www.npmjs.com/package/buffer))
+- Node [Buffer](https://nodejs.org/api/buffer.html) object (works in [the browser](https://www.npmjs.com/package/buffer)) (must set a `name` property on it)
+- Node [stream.Readable](http://nodejs.org/api/stream.html) object (must set `name` and `opt.pieceLength` properties on it)
Or, an **array of `string`, `File`, or `Buffer` objects**.