Tabnine Logo For Javascript
Connection.close
Code IndexAdd Tabnine to your IDE (free)

How to use
close
function
in
Connection

Best JavaScript code snippets using rhea-promise.Connection.close(Showing top 1 results out of 315)

origin: moleculerjs/moleculer

/**
   * Disconnect from an AMQP 1.0 server
   * Close every receiver on the connections and the close the connection
   * @memberof Amqp10Transporter
   */
  disconnect() {
    if (this.connection) {
      return this.broker.Promise.all(this.receivers.map(receiver => receiver.close()))
        .then(() => this.connection.close())
        .then(() => {
          this.connection = null;
          this.connected = false;
          this.session = null;
          this.receivers = [];
        })
        .catch(error => this.logger.error(error));
    }
  }
rhea-promise(npm)Connectionclose

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

  • yargs
    yargs the modern, pirate-themed, successor to optimist.
  • readable-stream
    Streams3, a user-land copy of the stream library from Node.js
  • handlebars
    Handlebars provides the power necessary to let you build semantic templates effectively with no frustration
  • bluebird
    Full featured Promises/A+ implementation with exceptionally good performance
  • q
    A library for promises (CommonJS/Promises/A,B,D)
  • fs-extra
    fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.
  • ms
    Tiny millisecond conversion utility
  • axios
    Promise based HTTP client for the browser and node.js
  • superagent
    elegant & feature rich browser / node HTTP with a fluent API
  • 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