使用 Webtorrent 播种文件
Seeding a file using Webtorrent
我正在尝试使用 Nodejs 中的 WebTorrent 为 html
文件播种。我从 WebTorrent 收到回调,这表明客户端已开始播种,但是当我在客户端复制粘贴哈希以下载文件时,什么也没发生。
这是我在服务器端的代码:
client.seed(file, function (torrent) {
debug('started seeding %s - %s', torrent.infoHash, torrent.files[0].name);
});
问题是什么?我该如何调试以查看发生了什么?
我找到了答案。就像用 webtorrent-hybrid
替换 webtorrent
一样简单,而且效果很好。
我正在尝试使用 Nodejs 中的 WebTorrent 为 html
文件播种。我从 WebTorrent 收到回调,这表明客户端已开始播种,但是当我在客户端复制粘贴哈希以下载文件时,什么也没发生。
这是我在服务器端的代码:
client.seed(file, function (torrent) {
debug('started seeding %s - %s', torrent.infoHash, torrent.files[0].name);
});
问题是什么?我该如何调试以查看发生了什么?
我找到了答案。就像用 webtorrent-hybrid
替换 webtorrent
一样简单,而且效果很好。