socket.io-zeromq-emitter

socket.io emitter zeromq implementation

socket.io-zeromq-emitter

socket.io emitter zeromq implementation.

Installing

$ npm install socket.io-zeromq-emitter

zeromq version required >= 4.0.4

Usage

var emitter = require('socket.io-zeromq-emitter')();
setInterval(function () {
  emitter.emit('time', new Date);
}, 1000);

API

socket.io-zeromq-emitter API is virtually the same as socket.io-emitter.

The following options are allowed:

  • key: the name of the key to pub/sub events on as prefix (socket.io-zmq)
  • host: host to connect to socket.io-zeromq-server on (127.0.0.1)
  • port: port to connect to socket.io-zeromq-server on (5555)

Testing

$ make test

TODO

more test !!

License

MIT license.

See the LICENSE.