Skip to content

connection publish callback not executed #473

Description

@vilten

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()
})
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions