Skip to content

Commit c11121c

Browse files
ssorjgrs
authored andcommitted
Correct the docs and examples regarding the message ID property
1 parent 7b75c61 commit c11121c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ Sends a message. A message is an object that may contain the following fields:
406406
* content_type
407407
* content_encoding
408408
* group_id
409-
* id
409+
* message_id
410410
* correlation_id
411411
* application_properties, an object/map which can take arbitrary, application defined named values
412412
* body, which can be either a string, an object or a buffer

examples/direct_send.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ container.on('sendable', function (context) {
2929
while (context.sender.sendable() && sent < total) {
3030
sent++;
3131
console.log('sent ' + sent);
32-
context.sender.send({id:sent, body:{'sequence':sent}});
32+
context.sender.send({message_id:sent, body:{'sequence':sent}});
3333
}
3434
if (sent === total) {
3535
context.sender.set_drained(sent === total);

0 commit comments

Comments
 (0)