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:
authorFeross Aboukhadijeh <feross@feross.org>2014-03-03 11:02:46 +0400
committerFeross Aboukhadijeh <feross@feross.org>2014-03-03 11:02:46 +0400
commit07013a122d6ea7e4ee066998467993315fd39e49 (patch)
treedd58cc538c1e262c61691cf9200d77f40a0e203f /lib/torrent.js
parent8375be8c1ceb5cadf3f0c67eb6150e2bf9860f67 (diff)
torrent successfully fetched over the net!
Diffstat (limited to 'lib/torrent.js')
-rw-r--r--lib/torrent.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index ac7d809..3347e04 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -272,6 +272,7 @@ Torrent.prototype._onMetadata = function () {
self.storage.on('piece', self._onStoragePiece.bind(self))
self.storage.on('file', function (file) {
console.log('FILE', file.name)
+ self.file = file.buffer
})
self.storage.on('done', function () {
console.log('done with torrent!')