Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ZeroMQ based event dispatcher

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .jshintignore
Octocat-spinner-32 .jshintrc
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 evnet.js
Octocat-spinner-32 package.json
README.md

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)
})

Emit

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

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

Credits

Paul Serby follow me on twitter @serby

Licence

Licensed under the New BSD License

Something went wrong with that request. Please try again.