Skip to content

Instantly share code, notes, and snippets.

View its2mc's full-sized avatar

Phillip Ochola its2mc

View GitHub Profile
@its2mc
its2mc / broker.js
Last active August 29, 2015 14:22 — forked from jedi4ever/broker.js
var pubListener = 'tcp://127.0.0.1:5555';
var subListener = 'tcp://127.0.0.1:5556';
var hwm = 1000;
var verbose = 0;
// The xsub listener is where pubs connect to
var subSock = zmq.socket('xsub');
subSock.identity = 'subscriber' + process.pid;
subSock.bindSync(subListener);