npm

deepstream.io-msg-direct

0.0.3 • Public • Published

deepstream.io-msg-direct npm version

deepstream message connector for direct tcp connections between all deepstream nodes

Basic Setup

var Deepstream = require( 'deepstream.io' ),
    DirectMessageConnector = require( 'deepstream.io-msg-direct' ),
    server = new Deepstream();
 
var directMessageConnector =new DirectMessageConnector({
  localhost: 0.0.0.0,
  localpost: 6024,
  remoteUrls: [ 'deepstream-one:6024', 'deepstream-two:6024' ]
});
server.set( 'messageConnector', directMessageConnector);
 
server.start();
 
//Add another deepstream node during runtime
directMessageConnector.addPeer( 'deepstream-three:6024' );
 
//Remove another deepstream node during runtime
directMessageConnector.removePeer( 'deepstream-one:6024' );

Readme

Keywords

none

Package Sidebar

Install

npm i deepstream.io-msg-direct

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • deepstreamio
  • hoxton-one-ltd
  • yasserf