Seeding a file using Webtorrent

2.8k Views Asked by At

I'm trying to seed an html file using WebTorrent in Nodejs. I get callback from WebTorrent which indicates that the client is started seeding but when I copy-paste the hash on the client-side to download the file, nothings happened.

Here is my code on the server-side:

  client.seed(file, function (torrent) {
    debug('started seeding %s - %s', torrent.infoHash, torrent.files[0].name);
  });

What is the problem and how can I debug to see what is going on?

1

There are 1 best solutions below

1
On BEST ANSWER

I found the answer. It's as simple as replacing the webtorrent with webtorrent-hybrid and it works perfectly.