2.0.3 • Published 7 years ago

seneca-nats-transport v2.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

seneca-nats-transport

NPM Build Status Coverage

Seneca NATS transport.

Seneca is a microservices framework and NATS is an open-source, high-performance, lightweight cloud messaging system. This library provides a publish-subscribe message distribution model.

Installation

npm install seneca-nats-transport

Usage

gnatsd server should be running.

// server.js

require('seneca')()
  .use('nats-transport')
  .add({role: 'foo', cmd: 'bar'}, function(msg, done) { return done(null, msg); })
  .listen({type:'nats'});
// client.js

require('seneca')()
  .use('nats-transport')
  .client({type:'nats'})
  .act({role: 'foo', cmd: 'bar', arg1: 1, arg2: 2}, console.log);
gnatsd
node server.js
node client.js

License

Licensed under The MIT License (MIT)
For the full copyright and license information, please view the LICENSE.txt file.

2.0.3

7 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago