uri to the server, example: amqp://user:passwd@localhost:5672/vhost
OptionaltlsOptions: AMQPTlsOptionsoptional TLS options
Optionallogger: null | Loggeroptional logger instance, defaults to null (no logging)
OptionalblockedSet when the server has blocked publishing (connection.blocked reason).
Maximum number of channels negotiated with the server.
Open channels, indexed by channel id.
Whether the connection is closed.
Protected OptionalcloseProtected OptionalconnectMaximum frame size in bytes negotiated with the server.
Heartbeat interval in seconds.
ReadonlyhostServer hostname.
Logger instance, or undefined to disable logging.
OptionalnameConnection name, visible in the RabbitMQ management UI.
OptionalondisconnectCallback when connection is lost
Optionalerror: ErrorThe error that caused the disconnection, if any
Callback for connection-level errors.
Protected OptionalonPassword for authentication.
OptionalplatformPlatform identifier sent in client properties.
ReadonlyportServer port.
OptionalsocketUnderlying TCP socket, set after connect.
ReadonlytlsWhether TLS is enabled.
ReadonlytlsTLS options passed to tls.connect.
Username for authentication.
Virtual host to connect to.
Open a channel
Optionalid: numberAn existing or non existing specific channel
Gracefully close the AMQP connection.
Optionalreason: string = ""might be logged by the server
ProtectedcloseTry establish a connection
AMQP 0-9-1 client over TCP socket.