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" });
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.6
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.6
    0
  • 0.0.5
    0
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0

Package Sidebar

Install

npm i zab

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

35 kB

Total Files

5

Last publish

Collaborators

  • fognet