evnet

ZeroMQ based event dispatcher

evnet

ZeroMQ based event dispatcher

  brew install zmq
  sudo apt-get install libzmq1
  sudo apt-get install libzmq-dev
  npm install evnet
var evnet = require('../evnet')
evnet.start('0.0.0.0')
var evnet = require('../evnet')
  , e = evnet('0.0.0.0')
 
e.on('HELLO', function (data) {
  console.log('I got this:', data)
})
 
var evnet = require('../evnet')
  , e = evnet('0.0.0.0')
 
e.once('HELLO', function (data) {
  console.log('I got this:', data)
})
 
var evnet = require('../evnet')
  , e = evnet('0.0.0.0')
 
e.emit('HELLO', [{ foo: 'World' }])

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

Licensed under the New BSD License