zab
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

zab

function gotMessage(topic, payload) {
  console.log("=>", topic, payload);
}

async function init() {
  await zab.connect("username", "password", gotMessage);

  zab.sub("topic1");

  zab.pub("topic1", { hi: "hello" });
}

/zab/

    Package Sidebar

    Install

    npm i zab

    Weekly Downloads

    3

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    35 kB

    Total Files

    5

    Last publish

    Collaborators

    • fognet