Skip to content

Instantly share code, notes, and snippets.

@taotetek
Created January 13, 2014 02:30
Show Gist options
  • Save taotetek/8393833 to your computer and use it in GitHub Desktop.
Save taotetek/8393833 to your computer and use it in GitHub Desktop.
Dump from stats socket in meatspace
var zmq = require('zmq'), sock = zmq.socket('sub');
sock.subscribe("");
sock.bindSync ('ipc:///tmp/meatcounter.ipc');
sock.on('message', function(msg) {
console.log('RECEIVED: %s', msg.toString());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment