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

aws-sqs-poll

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-sqs-poll

Polling messages from AWS SQS

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22
increased by144.44%
Maintainers
1
Weekly downloads
 
Created
Source

aws-sqs-poll Build Status

Polling messages from AWS SQS

Note on long polling

Long polling helps reduce your cost of using Amazon SQS by reducing the number of empty responses (when there are no messages available to return in reply to a ReceiveMessage request sent to an Amazon SQS queue) and eliminating false empty responses (when messages are available in the queue but aren't included in the response):

See here for more information.

Install

$ npm install --save aws-sqs-poll

Usage

const awsSqsPoll = require('aws-sqs-poll');

awsSqsPoll('QueueName', [options])
    //  [messages]

API

aws-sqs-poll(queueName, options)

queueName

Type: string

options

Type: object

options.awsAccountId

Type: string

AWS account ID of the account that created the queue.

options.numberOfMessages

Type: number

Number of messages to be retrieved in 1 polling action.

options.timeout

Type: number

Timeout to listen to the queue for new messages.

options.json

Type: boolean

Flag for converting the data back to JSON format

License

MIT © Simon Jang

Keywords

FAQs

Package last updated on 28 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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