kernl API
    Preparing search index...

    Function createTorrentBridge

    • Creates the bridge for magnet links. Peers in a swarm see the user's address and what they fetch, and the transfer is not encrypted.

      Parameters

      • Optionalbackend: TorrentBackend

        The download engine; without one the bridge reports itself unavailable.

      Returns Bridge

      A bridge with id torrent labelled downloads.

      const bridge = createTorrentBridge(engine);
      const job = await bridge.resolve(parseLocator(magnetLink), { requester: 'shell' });