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

VersionDownloads (Last 7 Days)Tag
0.0.60latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20

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