@yourrentals/util-sqs-consumer
v0.7.2
Published
This library implements a SQS consumer that can be used to receive messages from SQS
Downloads
9
Keywords
Readme
@yourrentals/util-sqs-consumer
This library implements a SQS consumer that can be used to receive messages from SQS
Installation
yarn add @yourrentals/util-sqs-consumer
Usage
import {Consumer} from '@yourrentals/util-sqs-consumer';
const consumer = new Consumer({
queueUrl: 'https://sqs.eu-west-1.amazonaws.com/123456789012/my-queue',
handleMessage: async (message) => {
// ...
},
// ... Additional options
});
consumer.start();