how to use publish and subscribe in node js code example
Example: pub js npm
let sub = new Subsciber({ id: "sub_1", topic: "topic_1", callback: (state) => { console.log(state); }});
let sub = new Subsciber({ id: "sub_1", topic: "topic_1", callback: (state) => { console.log(state); }});