1.0.8 • Published 7 years ago

@stylishly/sqs-message-handler v1.0.8

Weekly downloads
2
License
ISC
Repository
-
Last release
7 years ago

Stylishly SQS Message Handler

Installation

$ npm install -S @stylishly/sqs-message-handler

Usage

const messageHandler = new SQSMessageHandler({
  sqs, // Instance of AWS.SQS http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SQS.html
  queueName: some_queue_to_poll,
  messageOptions: {
    MaxNumberOfMessages: 10,
    WaitTimeSeconds: 20,
    MessageAttributeNames: [
      'All'
    ]
  },
  handlerFunction: (messages) => {
    // Do some stuff with the messages
  }
});

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test
1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago