Transmission::RPC::Protocol
Inherits Enum < Comparable < Value < Object
Selects which RPC protocol dialect the {Client} speaks.
Transmission has two on-the-wire dialects:
- Modern — the JSON-RPC 2.0 envelope introduced in Transmission 4.1.0.
Method names and fields use
snake_case({"jsonrpc":"2.0","method":"torrent_get","params":{…},"id":1}). - Classic — the original Transmission envelope, the only dialect
understood by 4.0.x and earlier
(
{"method":"torrent-get","arguments":{…},"tag":1}). Method names and keys are hyphenated/camelCaseand responses arecamelCase.
4.1.x understands both; 4.0.x understands only Classic, so Classic is the universal fallback.
Constants
Auto = 0
Probe the daemon on first use and pick {Modern} or {Classic} automatically. The default.
Modern = 1
Force the JSON-RPC 2.0 dialect (Transmission 4.1.0+).
Classic = 2
Force the original Transmission dialect (works against every version).