kernl API
    Preparing search index...

    Interface TorrentBackend

    A backend that can download torrents.

    interface TorrentBackend {
        handoff?: true;
        add(
            infoHash: string,
            trackers: readonly string[],
            context: BridgeContext,
            name?: string,
        ): Promise<{ id: string; name: string }>;
    }

    Hierarchy (View Summary)

    Index
    handoff?: true

    True when the backend hands the locator to an app on the user's device rather than moving data itself. kernl then makes no connection for the resolution. Read on every availability check, so a backend that lets the user choose may switch it.

    • Parameters

      • infoHash: string
      • trackers: readonly string[]
      • context: BridgeContext
      • Optionalname: string

      Returns Promise<{ id: string; name: string }>