Tabnine Logo For Javascript
Receiver.on
Code IndexAdd Tabnine to your IDE (free)

How to use
on
function
in
Receiver

Best JavaScript code snippets using rhea-promise.Receiver.on(Showing top 3 results out of 315)

origin: moleculerjs/moleculer

/**
   * Subscribe to balanced event command
   * For EVENTB command types
   * These queues will be used when the "disableBalancer" set to true
   *
   * @param {String} event
   * @param {String} group
   * @memberof Amqp10Transporter
   */
  subscribeBalancedEvent(event, group) {
    const queue = `${this.prefix}.${PACKET_EVENT}B.${group}.${event}`;
    const receiverOptions = Object.assign(
      {
        source: { address: queue },
        autoaccept: false,
        session: this.session
      },
      this._getQueueOptions(PACKET_EVENT + "LB", true)
    );

    return this.connection.createReceiver(receiverOptions).then(receiver => {
      receiver.on("message", this._consumeCB(PACKET_EVENT, true));

      this.receivers.push(receiver);
    });
  }
origin: moleculerjs/moleculer

receiver.on("message", context => {
  const cb = this._consumeCB(PACKET_REQUEST, true)(context);
  if (isPromise(cb) && this.opts.prefetch !== 0) {
origin: moleculerjs/moleculer

  receiver.on("message", context => {
    const cb = this._consumeCB(cmd, needAck)(context);
    if (isPromise(cb) && this.opts.prefetch !== 0) {
});
return this.connection.createReceiver(receiverOptions).then(receiver => {
  receiver.on("message", context => {
    this._consumeCB(cmd, false)(context);
  });
rhea-promise(npm)Receiveron

Most used rhea-promise functions

  • Connection.createAwaitableSender
  • Connection.createReceiver
  • Connection.open
  • AwaitableSender
  • AwaitableSender.close
  • Connection,
  • Connection._connection,
  • Connection.close,
  • Connection.createSession,
  • Connection.error,
  • Connection.on,
  • Connection.prototype,
  • Container.createConnection,
  • Receiver,
  • Receiver.addCredit,
  • Receiver.on,
  • Session,
  • Session._session,
  • Session.setMaxListeners

Popular in JavaScript

  • body-parser
    Node.js body parsing middleware
  • q
    A library for promises (CommonJS/Promises/A,B,D)
  • winston
    A logger for just about everything.
  • mkdirp
    Recursively mkdir, like `mkdir -p`
  • fs
  • crypto
  • chalk
    Terminal string styling done right
  • path
  • ws
    Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js
  • Github Copilot alternatives
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