Skip to content

4screens/socket.io-zeromq-emitter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

socket.io emitter implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.9%
  • Makefile 9.1%