-
Notifications
You must be signed in to change notification settings - Fork 356
Open
Description
Hello,
when I tried prepare simple publish procedure, callback after publishing message is never executed.
var amqp = require('amqp')
var connection = amqp.createConnection({ host: 'localhost', port: 5672 })
// add this for better debuging
connection.on('error', function(e) {
console.log("Error from amqp: ", e)
})
// Wait for connection to become established.
connection.on('ready', function () {
console.log('Connected.')
connection.publish('my-queue', '', {}, _ => {
console.log('Not executed')
connection.end()
})
})
Metadata
Metadata
Assignees
Labels
No labels