new AmqpConnection()
Manages an AMQP connection.
- Source:
Fires:
Methods
(async) close() → {Promise.<void>}
To close the connection. You can use `await` to get the result or listen events.
- Source:
Throws:
Returns:
- Type
- Promise.<void>
connect()
To connect to the message broker. The `AmqpConnection` will report status with Status.
- Source:
status() → {Status}
To get the connection status.
- Source:
Returns:
- Type
- Status
Events
error
Connection error event.
Type:
- Error
- Source:
status
Connection status event.
Type:
- Source: