首页 > 解决方案 > WebSocket 连接到“wss://tracker.btorrent.xyz/”失败:WebSocket 握手期间出错:意外响应代码:522 {webtorrent}

问题描述

你好,智人,我似乎已经走到了死胡同,需要你的帮助。我正在使用 webtorrent-hybrid 来显示 torrent,但是当我使用 client.add 下载 torrent 时,出现此错误,

ICE failed, add a TURN server and see about:webrtc for more details 10
Firefox can’t establish a connection to the server at wss://tracker.btorrent.xyz/.

如果您好奇,这就是代码,

client.add(torrentId, function (torrent) {

  var file = torrent.files.find(function (file) {
    return file.name.endsWith('.mp4')
  })

  var info = torrent.ready
  console.log(info)
  file.appendTo('body')
  console.log(file)

  // Display the file by adding it to the DOM. Supports video, audio, image, etc. files

})

如果您能帮助我解决我的问题,我将不胜感激。

标签: webtorrent

解决方案


推荐阅读