Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 524 Bytes

readme.md

File metadata and controls

29 lines (20 loc) · 524 Bytes

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();