Promises
You can also use kbyte with promises by promisifying kbyte with bluebird as in:
It'll add a Async to all kbyte functions (e.g. return client.requestAsync().then()) client.request('get_peers', null, function(err, result) { console.log(err, result); });
Last updated