Implements

  • TorrentClient

Constructors

  • Parameters

    • options: Partial<TorrentSettings> = {}

    Returns Transmission

Properties

config: TorrentSettings
sessionId?: string

Methods

  • 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 string of file path 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<FetchResponse<T>>