Checks if the broker is connected (lifecycle — M70c).
true while connect() has run and disconnect() has not, even during
a reconnect window: the lifecycle is intact, the backend is what is
down. Reachability is isHealthy/reachability.
Return Type
boolean
true if connected, false otherwise
Usage
import { RabbitMqBroker } from "messaging-plugin/src/index.ts";