Optional
connectionOptional
findfindServers
is a function that 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
heartbeatInterval to send heartbeats to broker. Defaults to 5 seconds.
Optional
reconnectThe time to wait before trying to reconnect. If not specified, defaults
to heartbeatIntervalInSeconds
.
Generated using TypeDoc
Connection options, passed as options to the amqplib.connect() method.