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" });
}
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" });
}
npm i zab
0
0.0.6
MIT
35 kB
5