Skip to content

Commit

Permalink
Feat: Receive message attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras Toth committed Feb 8, 2017
1 parent d850d1a commit 1051868
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ class Squiss extends EventEmitter {
const params = {
QueueUrl: queueUrl,
MaxNumberOfMessages: this._opts.receiveBatchSize,
WaitTimeSeconds: this._opts.receiveWaitTimeSecs
WaitTimeSeconds: this._opts.receiveWaitTimeSecs,
MessageAttributeNames: ['All']
}
if (this._opts.visibilityTimeoutSecs !== undefined) {
params.VisibilityTimeout = this._opts.visibilityTimeoutSecs
Expand Down
3 changes: 2 additions & 1 deletion test/src/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ describe('index', () => {
QueueUrl: 'foo',
MaxNumberOfMessages: 10,
WaitTimeSeconds: 20,
VisibilityTimeout: 10
VisibilityTimeout: 10,
MessageAttributeNames: ['All']
})
})
})
Expand Down

0 comments on commit 1051868

Please sign in to comment.