node.jswebtorrent

Seeding a file using Webtorrent


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?


Solution

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