Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fields
lib
test
.gitignore
README.md
config.json
package.json
rtorrent.js

README.md

node-rtorrent

Installation

Available via npm:

$ npm install node-rtorrent-scgi

Or via git:

$ git clone git://github.com/kinabcd/node-rtorrent.git node_modules/node-rtorrent-scgi

API

Connection

Connect rTorrent with TCP/IP:

conn = rtorrent({host:'localhost', port:5000});

Connect rTorrent with Socket:

conn = rtorrent({path:'/tmp/torrent.sock'});

SendCall

Makes a request. Return the response from rTorrent.

conn.SendCall(methodName, params, function(err, data) {
    // Do something...
});

Details

Get the list of torrents.

conn.Details(function(list) {
    console.log(list);
});

Example

rtorrent = require('node-rtorrent-scgi');
conn = rtorrent({host:'localhost', port:5000});
conn.Details(function(list) {
    console.log(list);
});

License

GNU Lesser General Public License v3

You can’t perform that action at this time.