antenna
Antenna is a publish/subscribe
middleware layer for Node. Applications can be constructed
by using middleware and defining routes.
This architecture has been proven effective by Express,
which provides HTTP middleware. Antenna adopts this approach, repurposing it
for use with a message bus, allowing listeners to be built quickly and easily,
using patterns familiar to Node.js developers.
Install
$ npm install antenna
Usage
var antenna = require('antenna');
var app = antenna();
app.listen('events/:event', function(msg, next) {
console.log('got event: ' + msg.params.event);
});
Adapters
Adapters are used to connect to message buses, receiving messages and
dispatching those messages to the application for processing.
The following table lists commonly used adapters:
Tests
$ npm install
$ make test
Credits
License
The MIT License
Copyright (c) 2014 Jared Hanson <http://jaredhanson.net/>