Skip to content

Instantly share code, notes, and snippets.

@ysimonson
Created July 24, 2012 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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