How to use the amqp-connection-manager/lib/ChannelWrapper.default function in amqp-connection-manager

To help you get started, we’ve selected a few amqp-connection-manager examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wherefortravel / bull-amqp / src / index.js View on Github external
// @flow

import Queue from './Queue'

require('amqp-connection-manager/lib/ChannelWrapper').default.prototype._runOnce = function(fn) {
  return this.waitForConnect().then(() => fn(this._channel))
}

export default Queue

amqp-connection-manager

Auto-reconnect and round robin support for amqplib.

MIT
Latest version published 9 months ago

Package Health Score

72 / 100
Full package analysis