votifier2
v0.0.6
Published
A Votifier protocol v2 client
Downloads
18
Readme
votifier2
This library supports network protocol v2 of the NuVotifier plugin.
Installation
npm install --save votifier2
Usage
var vote = require('votifier2');
var options = {
host: '127.0.0.1',
port: 8192,
token: 'MYTOKEN',
vote: {
username: 'USERNAME',
address: '127.0.0.1',
timestamp: new Date().getTime(),
serviceName: 'TestService'
}
};
vote(options, function(err) {
if (err) {
console.log(err);
} else {
console.log('success');
}
});