8000 Explain the difference with Node 6 · sardesh/rabbitmq-tutorials@46e9873 · GitHub
[go: up one dir, main page]

Skip to content

Commit 46e9873

Browse files
Explain the difference with Node 6
1 parent 67687c0 commit 46e9873

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript-nodejs/src/send.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ amqp.connect('amqp://localhost', function(err, conn) {
88
var msg = 'Hello World!';
99

1010
ch.assertQueue(q, {durable: false});
11+
// Note: on Node 6 Buffer.from(msg) should be used
1112
ch.sendToQueue(q, new Buffer(msg));
1213
console.log(" [x] Sent %s", msg);
1314
});

0 commit comments

Comments
 (0)
0