Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fh-amqp-js

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fh-amqp-js - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

21

lib/amqpjs.js

@@ -111,2 +111,23 @@ var amqp = require('amqp');

// Subscribe to Tasks
// 'subscribeFunc' is the function that gets called each time a message happens
this.subscribeToTasks = function(exchangeName, qName, filter, subscribeFunc, opts, callback) {
if (!callback) {
callback = opts;
opts = undefined;
}
// If no opts passed, create a durable Q by default.
if (!opts) {
opts = {
autoDelete: false,
durable: true
};
}
_connection.queue(qName, opts, function(q) {
q.subscribe({ack: true}, subscribeFunc);
callback();
});
};
// cleanly disconnect from the Cluster

@@ -113,0 +134,0 @@ this.disconnect = function(){

2

package.json
{
"name": "fh-amqp-js",
"version": "0.2.2",
"version": "0.2.3",
"description": "FeedHenry AMQP Client",

@@ -5,0 +5,0 @@ "main": "./lib/amqpjs.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc