Skip to content

Interface: AMQPClientOptionsObject

Describes the shape of an object used for connecting to an AMQP server.

Properties

PropertyTypeDescription
channelMax?numberThe maximum number of channels allowed. Defaults to 0 (unlimited).
frameMax?numberThe size in bytes of the maximum frame allowed over the connection. 0 means no limit. Defaults to 4096.
heartbeat?numberThe period of the connection heartbeat, in seconds. Defaults to 0 (disabled). See https://www.rabbitmq.com/docs/heartbeats
hostnamestringThe hostname of the server.
name?stringThe name of the connection to show in the RabbitMQ management UI. Omitted by default.
password?stringThe password to use for authentication. Defaults to "guest".
port?numberThe port to connect to. Defaults to 5672 for "amqp" and 5671 for "amqps".
protocol"amqp" | "amqps"The protocol to use. Either "amqp" or "amqps".
username?stringThe username to use for authentication. Defaults to "guest".
vhost?stringThe logically isolated namespace within the server. Defaults to "/". Remarks This value is URI encoded when passed to the server.