0.0.8 • Published 11 years ago

pigeon-post v0.0.8

Weekly downloads
33
License
-
Repository
-
Last release
11 years ago

pigeon

Configuration based RabbitMQ interface based on node-amqp

Installation

npm install pigeon

Synopsis

An example of connecting to a server, publishing an event and receiving it

Configuration file

publishers:
  -
    name: greeter
    options:
      type: fanout
    publishes:
      - greeting
subscribers
  -
    name: receptionist
    bindings:
      greeter:
        - greeting

Publisher

var Pigeon = require('pigeon').getInstance();

Pigeon
    .connect('config.yml')
    .publish('greeting', {value:'Hello World'})

Subscriber

var Pigeon = require('pigeon').getInstance();

Pigeon
    .connect('config.yml')
    .subscribe('receptionist', function(msg) {
        console.log(msg);
    });
0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago