Socket
Socket
Sign inDemoInstall

sqs-consumer

Package Overview
Dependencies
37
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"name": "sqs-consumer",
"version": "1.0.0",
"description": "Create applications that pull tasks from an SQS queue",
"version": "1.0.1",
"description": "Build SQS-based Node applications without the boilerplate",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -30,3 +30,2 @@ # sqs-consumer

* The queue is polled continuously for messages using [long polling](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html).
* Messages are received one at a time.
* Messages are deleted from the queue once `done()` is called.

@@ -43,6 +42,6 @@ * Calling `done(err)` with an error object will cause the message to be left on the queue. An [SQS redrive policy](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) can be used to move messages that cannot be processed to a dead letter queue.

* `queueUrl` - _String_ - the SQS queue URL
* `region` - _String_ - the AWS region
* `handleMessage` - _Function_ - a function to be called whenever a message is receieved. Receives an SQS message object as its first argument and a function to call when the message has been handled as its second argument (i.e. `handleMessage(message, done)`).
* `waitTime` - _Number_ - time in milliseconds to wait after recieving a message before requesting another one. This enables you to throttle the rate at which messages will be received. (default `100`);
* `queueUrl` - _String_ - The SQS queue URL
* `region` - _String_ - The AWS region
* `handleMessage` - _Function_ - A function to be called whenever a message is receieved. Receives an SQS message object as its first argument and a function to call when the message has been handled as its second argument (i.e. `handleMessage(message, done)`).
* `waitTime` - _Number_ - An optional time in milliseconds to wait after recieving a message before requesting another one. This enables you to throttle the rate at which messages will be received. (default `100`);
* `sqs` - _Object_ - An optional [AWS SQS](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SQS.html) object to use if you need to configure the client manually

@@ -49,0 +48,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc