Interface RequestServiceConfig

The configuration options for the RequestService

Hierarchy

Properties

customServices?: {
    sessionService?: SessionService;
}

Options for customizing the services used by the TransmissionClient. This is useful for testing as it allows you to mock the services.

Type declaration

  • Optional sessionService?: SessionService

    The session service which is used to obtain a session ID from the Transmission RPC endpoint

    Default

    new SessionService()
    
hostname?: string

The hostname to use for all requests

Default

'localhost'
invalidSessionRetryConfig?: Omit<InvalidSessionRetry, "count">

The configuration options for retrying a request if the session ID is invalid. By default, the request will be retried 3 times with a delay of 1 second before throwing an error.

password?: string

The password to use for all requests

Default

'transmission'
pathname?: string

The pathname to use for all requests

Default

'/transmission/rpc'
port?: number

The port to use for all requests

Default

9091
protocol?: "http" | "https"

The protocol to use for all requests

Default

'http'
username?: string

The username to use for all requests

Default

'transmission'

Generated using TypeDoc