使用Webtorrent播种文件

我试图在Nodejs中使用WebTorrent播种html文件。 我从WebTorrent得到callback,表明客户端已经开始种子,但是当我在客户端复制粘贴哈希来下载文件时,发生了一些事情。

这是我在服务器端的代码:

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

什么是问题,我怎样才能debugging,看看是怎么回事?

我find了答案。 这与使用hybrid-webtorrent取代webtorrent一样简单,而且完美运行。