Git Product home page Git Product logo

zeromq.node's Introduction

node-zeromq

ØMQ bindings for node.js.

Installation

$ npm install zmq

Example

producer.js:

var zmq = require('zmq')
  , sock = zmq.socket('push');

sock.bindSync('tcp://127.0.0.1:3000');
console.log('Producer bound to port 3000');

setInterval(function(){
  console.log('sending work');
  sock.send('some work');
}, 500);

worker.js:

var zmq = require('zmq')
  , sock = zmq.socket('pull');

sock.connect('tcp://127.0.0.1:3000');
console.log('Worker connected to port 3000');

sock.on('message', function(msg){
  console.log('work: %s', msg.toString());
});

Running tests

Install dev deps:

 $ npm install

Build:

 $ make

Test:

 $ make test

Contributors

Authored by Justin Tulloss, maintained by Shripad K and TJ Holowaychuk. To contribute please ensure all tests pass, and do your best to maintain the style used within the rest of the library.

Output of git summary:

  project: zeromq.node
  commits: 260
  files  : 38
  authors: 
    114	Justin Tulloss          43.8%
     53	Tj Holowaychuk          20.4%
     48	Stéphan Kochen         18.5%
     12	jeremybarnes            4.6%
     10	TJ Holowaychuk          3.8%
      9	mike castleman          3.5%
      3	Yaroslav Shirokov       1.2%
      2	Corey Jewett            0.8%
      2	mgc                     0.8%
      1	rick                    0.4%
      1	Matt Crocker            0.4%
      1	Joshua Gourneau         0.4%
      1	Micheil Smith           0.4%
      1	Jeremy Barnes           0.4%
      1	nponeccop               0.4%
      1	Paul Bergeron           0.4%

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.