Соединение WebSocket с 'wss: //tracker.btorrent.xyz/' не удалось: Ошибка при рукопожатии WebSocket: Неожиданный код ответа: 522 {webtorrent} - PullRequest
0 голосов
/ 08 октября 2019

Привет, товарищ Хомо Сапиенс, я, кажется, зашел в тупик и буду нуждаться в твоей помощи. Я использую webtorrent-hybrid для отображения торрента, однако когда я использую client.add для загрузки моего торрента, я получаю эту ошибку,

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

})

Буду благодарен, если вы поможете мне в моей проблеме.

...