Problem with ZeroMQ

express
nodejs

#1

Hello,
New user here. I have been trying to set up a ZeroMQ subscribing server. I have a working project in my local machine and I can get the data but the I can’t seem to get any data on Cloud9. Any ideas?

const zlib = require('zlib');
const zmq = require('zmq');
const sock = zmq.socket('sub');

sock.connect('tcp://eddn-relay.elite-markets.net:9500');
console.log('Worker connected to port 9500');

sock.subscribe('');

sock.on('message', topic => {
    console.log(JSON.parse(zlib.inflateSync(topic)));
});

It puts the “worker connected to port…” message in the console but there is no JSON output.
Thanks