This seems to be incredibly easy but I can't wrap my head around it.
I'm trying to subscribe to daemon's ZMQ events yet I don't receive any. The port is open and accessible in LAN.
const zmq = require("zeromq")
async function run() {
const sock = new zmq.Subscriber
sock.connect("tcp://192.168.1.8:18082")
sock.subscribe("json-full")
console.log("Subscriber connected")
for await (const [topic, msg] of sock) {
console.log("received a message related to:", topic, "containing message:", msg)
}
}
run()
What am I missing?