Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 601 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 601 Bytes

node-cgminer

Forked from: node-cgminer

Usage

CGMiner command return a Promises/A compatible promise (specifically a Q promise):

var client = new CGMinerClient({host: HOST, port: PORT, timeout: TIMEOUT});
client.cmd(COMMAND, ARG1, ARG2).then(function(results) {
  console.log(results);
}, function(err) {
  // error handler
});

COMMAND corresponds to one of the commands detailed in CGMiner's API documentation.