Skip to content

Instantly share code, notes, and snippets.

@ysimonson
Created July 24, 2012 23:11
Show Gist options
  • Save ysimonson/3173276 to your computer and use it in GitHub Desktop.
Save ysimonson/3173276 to your computer and use it in GitHub Desktop.
ZMQ bug (working script)
var zmq = require("zmq");
var socket = zmq.socket("xrep");
socket.bindSync("ipc:///tmp/zmq-issue");
socket.on("message", function(envelope, _, name) {
socket.send([envelope, new Buffer(0), "Hello, " + name.toString()]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment