Tabnine Logo For Javascript
scc-broker-client
Code IndexAdd Tabnine to your IDE (free)

How to use scc-broker-client

Best JavaScript code snippets using scc-broker-client(Showing top 3 results out of 315)

origin: tiaod/moleculer-sc

run() {
  console.log('   >> Broker PID:', process.pid);

  // This is defined in server.js (taken from environment variable SC_CLUSTER_STATE_SERVER_HOST).
  // If this property is defined, the broker will try to attach itself to the SC cluster for
  // automatic horizontal scalability.
  // This is mostly intended for the Kubernetes deployment of SocketCluster - In this case,
  // The clustering/sharding all happens automatically.

  if (this.options.clusterStateServerHost) {
   scClusterBrokerClient.attach(this, {
    stateServerHost: this.options.clusterStateServerHost,
    stateServerPort: this.options.clusterStateServerPort,
    mappingEngine: this.options.clusterMappingEngine,
    clientPoolSize: this.options.clusterClientPoolSize,
    authKey: this.options.clusterAuthKey,
    stateServerConnectTimeout: this.options.clusterStateServerConnectTimeout,
    stateServerAckTimeout: this.options.clusterStateServerAckTimeout,
    stateServerReconnectRandomness: this.options.clusterStateServerReconnectRandomness
   });
  }
 }
origin: tiaod/moleculer-sc

run() {
  console.log('   >> Broker PID:', process.pid);

  // This is defined in server.js (taken from environment variable SC_CLUSTER_STATE_SERVER_HOST).
  // If this property is defined, the broker will try to attach itself to the SC cluster for
  // automatic horizontal scalability.
  // This is mostly intended for the Kubernetes deployment of SocketCluster - In this case,
  // The clustering/sharding all happens automatically.

  if (this.options.clusterStateServerHost) {
   scClusterBrokerClient.attach(this, {
    stateServerHost: this.options.clusterStateServerHost,
    stateServerPort: this.options.clusterStateServerPort,
    mappingEngine: this.options.clusterMappingEngine,
    clientPoolSize: this.options.clusterClientPoolSize,
    authKey: this.options.clusterAuthKey,
    stateServerConnectTimeout: this.options.clusterStateServerConnectTimeout,
    stateServerAckTimeout: this.options.clusterStateServerAckTimeout,
    stateServerReconnectRandomness: this.options.clusterStateServerReconnectRandomness
   });
  }
 }
origin: tiaod/moleculer-sc

run() {
  console.log('   >> Broker PID:', process.pid);

  // This is defined in server.js (taken from environment variable SC_CLUSTER_STATE_SERVER_HOST).
  // If this property is defined, the broker will try to attach itself to the SC cluster for
  // automatic horizontal scalability.
  // This is mostly intended for the Kubernetes deployment of SocketCluster - In this case,
  // The clustering/sharding all happens automatically.

  if (this.options.clusterStateServerHost) {
   scClusterBrokerClient.attach(this, {
    stateServerHost: this.options.clusterStateServerHost,
    stateServerPort: this.options.clusterStateServerPort,
    mappingEngine: this.options.clusterMappingEngine,
    clientPoolSize: this.options.clusterClientPoolSize,
    authKey: this.options.clusterAuthKey,
    stateServerConnectTimeout: this.options.clusterStateServerConnectTimeout,
    stateServerAckTimeout: this.options.clusterStateServerAckTimeout,
    stateServerReconnectRandomness: this.options.clusterStateServerReconnectRandomness
   });
  }
 }
scc-broker-client(npm)

JSDoc

Client for the SC cluster - For horizontal scalability.

Most used scc-broker-client functions

  • attach

Popular in JavaScript

  • commander
    the complete solution for node.js command-line programs
  • readable-stream
    Streams3, a user-land copy of the stream library from Node.js
  • mongodb
    The official MongoDB driver for Node.js
  • mime-types
    The ultimate javascript content-type utility.
  • async
    Higher-order functions and common patterns for asynchronous code
  • node-fetch
    A light-weight module that brings window.fetch to node.js
  • crypto
  • winston
    A logger for just about everything.
  • redis
    Redis client library
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now