Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ZeroMQ req socket example for node.js
var zmq = require('zmq');
var requester = zmq.socket('req');
requester.on('message', function(data)
console.log('got messsage: ' + data.toString('utf8'));
var endpoint = 'tcp://';
console.log('requesting on ' + endpoint);
var test = { foo: 'bar' };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.