Skip to main content
Go to Latest
interface AmqpConnectOptions
Re-export
import { type AmqpConnectOptions } from "https://deno.land/x/amqp@v0.23.1/mod.ts";

Options for the connection to an AMQP broker.

Properties

optional
hostname: string

Hostname or literal IP-address to the AMQP broker. Defaults to 'localhost'.

optional
port: number

TCP port of the AMQP broker. Defaults to 5672.

optional
username: string

Username for authenticating towards the AMQP broker. Defaults to 'guest'.

optional
password: string

Password for authenticating towards the AMQP broker. Defaults to 'guest'.

optional
vhost: string

AMQP virtual host. Defaults to "/"

optional
heartbeatInterval: number

Interval in seconds for the AMQP heartbeat frames. If not provided, the suggested heartbeat interval from the AMQP broker will be used (usually 60s).

If explicitly set to 0, heartbeat frames will be disabled.

optional
frameMax: number

Sets the maximum frame size in number of bytes.

This is negotiated with the broker during the connection handshake.

optional
loglevel: "debug" | "none"

UNSTABLE Controls the log level. Currently setting it to 'debug' will print received and sent frames on byte level.

This should eventually be able to turn logging on and off on different levels such as framing/methods/connection.

optional
tls: boolean