Skip to content

Instantly share code, notes, and snippets.

@missinglink
Forked from ysimonson/gist:3173276
Created March 3, 2013 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save missinglink/5078852 to your computer and use it in GitHub Desktop.
Save missinglink/5078852 to your computer and use it in GitHub Desktop.
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