mafintosh / torrent-stream

The low level streaming torrent engine that peerflix uses
MIT License
1.94k stars 228 forks source link

question: How to stream a torrent file #97

Closed herlon214 closed 9 years ago

herlon214 commented 9 years ago

How do I stream a torrent file? I saw only magnet.

Thanks in advance.

mafintosh commented 9 years ago

Just pass the contents of the torrent file as a buffer

var buf = fs.readFileSync('my.torrent')
var engine = torrentStream(buf)
herlon214 commented 9 years ago

Thanks for the response.

2015-02-18 6:22 GMT-03:00 Mathias Buus notifications@github.com:

Just pass the contents of the torrent file as a buffer

var buf = fs.readFileSync('my.torrent')var engine = torrentStream(buf)

— Reply to this email directly or view it on GitHub https://github.com/mafintosh/torrent-stream/issues/97#issuecomment-74834743 .

Att, Herlon Aguiar