Skip to content

UltraNemesis/deepstream.io-msg-nats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deepstream.io-msg-nats

deepstream message connector for NATS

This connector uses the npm NATS client package.

Example configuration

plugins:
  message:
    name: nats
    options:
      servers: 
        - 'nats://nats-server1:4222'
        - 'nats://nats-server2:4222'
        - 'nats://nats-server3:4222'

Usage in node

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();

Releases

No releases published

Packages

No packages published