Skip to content

What does the boolean returned by ChannelWrapper.publish indicate #307

Open
@manuschillerdev

Description

ChannelWrapper.publish resolves a boolean according to the TypeScript types:

const result = await amqpChannel.publish(
        process.env.AMQP_EXCHANGE,
        "my-qeue",
        myObject
);

What does result actually indicate?
I thought if the promise resolves, the message was published successfuly, if it rejects then there was an error.

I tried to find more information about that in the documentation, but did not find anything about it.

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