Implements

  • TorrentClient

Constructors

  • Parameters

    • options: Partial<TorrentSettings> = {}

    Returns Transmission

Properties

config: TorrentSettings
sessionId?: string

Methods

  • Removing a Torrent

    Parameters

    • id: NormalizedTorrentIds
    • removeData: boolean = false

      (default: false) If true, remove the downloaded data.

    Returns Promise<AddTorrentResponse>

  • note: This is the same "torrent-add" action with different options, less confusing to add it as its own method

    Parameters

    Returns Promise<AddTorrentResponse>

  • Adding a torrent

    Parameters

    • torrent: string | Uint8Array

      a stream of file content or contents of the file as base64 string

    • options: Partial<AddTorrentOptions> = {}

    Returns Promise<AddTorrentResponse>

  • Parameters

    • torrent: string | Uint8Array
    • options: Partial<AddTorrentOptions> = {}

    Returns Promise<NormalizedTorrent>

  • Parameters

    Returns Promise<NormalizedTorrent>

  • Returns Promise<AllClientData>

  • Type Parameters

    • T

    Parameters

    • method: string
    • args: any = {}

    Returns Promise<Promise<FetchResponse<T>>>