midknight41 / easy-sqs

Simplified Library for using AWS Simple Queuing Service (SQS)
MIT License
9 stars 7 forks source link

AttributeNames param option #26

Open teebu opened 3 years ago

teebu commented 3 years ago

Great module, been using it for years. Recently I needed to get the message attributes, which comes from a param "AttributeNames" when you pass to SQS request.

I forked your repo and added it, but it would be a nice addition to accept additional params.

here's my fork: https://github.com/teebu/easy-sqs

midknight41 commented 3 years ago

Glad you like it! Will have a look in the next couple days and look to include it.

teebu commented 3 years ago

It was a simple additional param to the createQueueReader,

    let consumer = client.createQueueReader(sqsEndpoint.url, 1, ['All']); // batch size: 1