vasyl-bhd / transmission-rpc-client

Simple client for RPC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

transmission-rpc-client

Simple client for calling transmisison torrent client using it's own RPC

Usage

Initializing client:

import {TransmissionClient} from "./Client";

const client = new TransmissionClient({
    host: "<your transmission hostname>",
    isHttps: false //(use https protocol. this parameter is optional)
});

Calling transmission:

client.getTorrents(GetTorrentRequest.of({fields: ["id", "name", "downloadDir"], ids: [1] || undefined}))
.then(res => console.log(res))

All API implemented here are described in transmission RPC docs

About

Simple client for RPC


Languages

Language:TypeScript 100.0%