-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Receive message attributes #19
base: master
Are you sure you want to change the base?
Conversation
I would totally not hate this ;-) |
Are these attributes accessible in the resulting Message object? I haven't used them a lot in the past (generally just json-formatted message bodies) so I'm not super familiar with the structure. |
Yes, they are on the "raw" message like this:
|
@TomFrost I've added attribute parsing, please take a look. |
Awesome! Two thoughts:
But, looking at the source for lodash.reduce, that's kind of an insane call stack for something we can do as simply as |
@TomFrost sure, I'll do both. (just a side note: we decided to stay with RabbitMQ for now) |
@tothandras I have created an enhanced, typescriped library based on this one with your fix in it - https://github.com/PruvoNet/squiss-ts |
I wonder if I should write a parser...
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SQS.html#receiveMessage-property
would become