Closed shifubrams closed 1 year ago
a solution would be to append this object https://github.com/Foo-Foo-MQ/foo-foo-mq/blob/e492c72d89f871b16ecf80f749e76d8e95097900/src/amqp/exchange.js#L79 to take in account the official properties like priority. ( tested and working ).
const publishOptions = {
type: message.type || '',
contentType: contentType,
contentEncoding: 'utf8',
correlationId: message.correlationId || '',
replyTo: message.replyTo || topology.replyQueue.name || '',
messageId: message.messageId || message.id || '',
timestamp: message.timestamp || Date.now(),
appId: message.appId || info.id,
headers: message.headers || {},
expiration: message.expiresAfter || undefined,
mandatory: message.mandatory || false,
priority: message.priority || undefined
};
@shifubrams please open a pull request for this
Also if you don't mind including the appropriate documentation updates that would be great
@zlintz can we just open a branch on this repo to avoid forking the whole repo ? I get a 403 when i want to push my branch
can i have a follow up on this please ?
Sure I’ll take a look at the repo settings today.
You should be able to now
hello, sorry i was able to create the branch but not to push on it.
Hello, in the documentation, here, it is mentionned that all the properties available are in this example. But, i tried to put priority ( enforced the typing ) and it ignores it.
Is it possible to manage priority as the package is ? If not, can you please add this field to the publish options ?
List of the supported rabbitmq properties :
Example :
This example above gives this message in rabbit :
Using : rabbitmq : v3.8.3 foo-foo-mq : v8.0.0 NodeJS : 18