Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AmqpConnectionManagerOptions

connect() options

Hierarchy

  • AmqpConnectionManagerOptions

Index

Properties

Optional connectionOptions

connectionOptions: ConnectionOptions & { clientProperties?: any; credentials?: { mechanism: string; password: string; username: string; response: any }; keepAlive?: boolean; keepAliveDelay?: number; noDelay?: boolean; timeout?: number }

TLS options

These are passed through directly to amqplib (http://www.squaremobius.net/amqp.node/channel_api.html#connect), which in turn passes them through to tls.connect (https://nodejs.org/api/tls.html#tls_tls_connect_options_callback)

Optional findServers

findServers: ((callback: (urls: string | string[]) => void) => void) | (() => Promise<string | string[]>)

is a function which returns one or more servers to connect to. This should return either a single URL or an array of URLs. This is handy when you're using a service discovery mechanism such as Consul or etcd. Instead of taking a callback, this can also return a Promise. Note that if this is supplied, then urls is ignored.

Optional heartbeatIntervalInSeconds

heartbeatIntervalInSeconds: number

Interval to send heartbeats to broker. Defaults to 5 seconds.

Optional reconnectTimeInSeconds

reconnectTimeInSeconds: number

The time to wait before trying to reconnect. If not specified, defaults to heartbeatIntervalInSeconds

Generated using TypeDoc