@ctrl/transmission
    Preparing search index...

    Class Transmission

    Implements

    • TorrentClient
    Index
    config: TorrentClientConfig
    state: TransmissionState = {}
    • Parameters

      • config: Readonly<TorrentClientConfig>
      • state: Readonly<Jsonify<TransmissionState>>

      Returns Transmission

    • Export the current state of the client. Can be restored with createFromState.

      Returns Jsonify<TransmissionState>

    • Move one or more torrents up the queue, clients resolve with void. Throws torrent_not_found when a torrent doesn't exist, throws when the client has no queue

      Parameters

      Returns Promise<void>

    • Move one or more torrents down the queue, clients resolve with void. Throws torrent_not_found when a torrent doesn't exist, throws when the client has no queue

      Parameters

      Returns Promise<void>

    • Removing a Torrent

      Parameters

      • id: NormalizedTorrentIds
      • removeData: boolean = false

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

      Returns Promise<void>

    • Parameters

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

      Returns Promise<NormalizedTorrent>

    • Returns all torrent data. Data has been normalized

      Returns Promise<AllClientData>

    • Type Parameters

      • T

      Parameters

      • method: string
      • args: any = {}

      Returns Promise<Promise<FetchResponse<T>>>