npm

socket.io-zeromq-emitter

0.0.1 • Public • Published

socket.io-zeromq-emitter

NPM version Build Status Coverage Status Dependency Status

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.

Emitter(opts)

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.

Package Sidebar

Install

npm i socket.io-zeromq-emitter

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • kazupon