evn

evnet

ZeroMQ based event dispatcher

Showing:

Popularity

Downloads/wk

89

GitHub Stars

2

Maintenance

Last Commit

3yrs ago

Contributors

4

Package

Dependencies

1

Size (min+gzip)

3.7KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

evnet

ZeroMQ based event dispatcher

build status

Installation

ZeroMQ Installation

Mac OsX

  brew install zmq

Debian derivatives; Ubuntu etc

  sudo apt-get install libzmq1
  sudo apt-get install libzmq-dev

NPM Install

  npm install evnet

Usage

Start a server

var evnet = require('../evnet')
evnet.start('0.0.0.0')

Listen

var evnet = require('../evnet')
  , e = evnet('0.0.0.0')

e.on('HELLO', function (data) {
  console.log('I got this:', data)
})

Listen once

var evnet = require('../evnet')
  , e = evnet('0.0.0.0')

e.once('HELLO', function (data) {
  console.log('I got this:', data)
})

Emit

var evnet = require('../evnet')
  , e = evnet('0.0.0.0')

e.emit('HELLO', [{ foo: 'World' }])

Credits

Paul Serby follow me on twitter @serby Dom Harrington follow me on twitter @domharrington

Licence

Licensed under the New BSD License

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100