Skip to content

hoeken/yarrboard-client

Repository files navigation

yarrboard-client

Client for connecting to a Yarrboard

Install

npm install yarrboard-client

Usage

const YarrboardClient = require('yarrboard-client');

yb = new YarrboardClient(options.host, options.user, options.pass, options.login);
setTimeout(yb.printMessageStats.bind(yb), 1000);    

yb.onopen = function () {
  yb.json({"cmd":"toggle_channel","id": 0});
}

yb.onmessage = function (msg) {
  if (msg.msgid)
    this.log(msg.msgid);
}

yb.start();

About

Node.js client for Yarrboard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published