deepstream message connector for NATS
This connector uses the npm NATS client package.
plugins:
message:
name: nats
options:
servers:
- 'nats://nats-server1:4222'
- 'nats://nats-server2:4222'
- 'nats://nats-server3:4222'
var Deepstream = require( 'deepstream.io' ),
NATSMessageConnector = require( 'deepstream.io-msg-nats' ),
server = new Deepstream();
server.set( 'messageConnector', new NATSMessageConnector( {
servers: [
'nats://nats-server1:4222',
'nats://nats-server2:4222',
'nats://nats-server3:4222'
]
}));
server.start();