@ctrl/rqbit
    Preparing search index...

    Class Rqbit

    Implements

    • TorrentClient
    Index
    state: TorrentClientState = {}
    • Export the current state of the client. Can be restored with createFromState.

      Returns Jsonify<RqbitState>

    • rqbit version, ex - 9.0.1

      Returns Promise<string>

    • Url to an m3u8 playlist of a torrent's playable files, or every torrent's when no id is passed. rqbit requires basic auth on this url when it is enabled.

      Parameters

      Returns string

    • Remove a torrent

      Parameters

      Returns Promise<void>

      when a torrent doesn't exist

    • Connect to additional peers

      Parameters

      Returns Promise<{ added: number }>

    • Resolve a magnet link to .torrent file contents without adding it. Like adding, rqbit fetches the metadata from peers before it responds, see RqbitConfig.addTimeout

      Parameters

      Returns Promise<Uint8Array<ArrayBuffer>>

    • Add a torrent and return normalized torrent data. The add endpoint has no paused option, startPaused pauses the torrent after adding. rqbit does not support labels, label is ignored. https://github.com/ikatson/rqbit/blob/v9.0.1/crates/librqbit/src/http_api_types.rs

      Parameters

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

      Returns Promise<NormalizedTorrent>

    • rqbit does not support labels so labels is always empty

      Returns Promise<AllClientData>

    • Type Parameters

      • T
      • R extends ResponseType = "json"

      Parameters

      • path: string
      • options: FetchOptions<R> = {}

      Returns Promise<MappedResponseType<R, T>>