4

I need to set a friendly name for my connection as below instead of "?" in RabbitMQ for amqplib for NodeJS:

enter image description here

I found examples with Java and Python but nothing yet with this library. Thanks.

CarlosS
  • 161
  • 1
  • 13

1 Answers1

12

Yes you can set the connection name by passing it in the client properties:

amqp.connect('amqp://localhost', {clientProperties: {connection_name: "myFriendlyName"}})

enter image description here

For reference:

https://github.com/squaremo/amqp.node/issues/217

Thomas Portwood
  • 1,031
  • 8
  • 13