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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.32latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.32
0.0.11

Package Sidebar

Install

npm i deepstream.io-msg-direct

Weekly Downloads

3

Version

0.0.3

License

MIT

Last publish

Collaborators

  • deepstreamio
  • hoxton-one-ltd
  • yasserf