Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

evnet

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evnet

ZeroMQ based event dispatcher

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-44.44%
Maintainers
2
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 25 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc