Stop downloading the torrent specified by the hash parameter.
var UTorrent = require('machinepack-utorrent');
// Stop downloading the torrent specified by the hash parameter.
UTorrent.stopTorrent({
host: 'localhost',
port: 26085,
username: 'admin',
password: '12345',
hash: '',
}).exec({
// An unexpected error occurred.
error: function (err) {
},
// OK.
success: function () {
},
});
'localhost'
26085
'admin'
'12345'
''
An unexpected error occurred.
OK.