method RabbitMqBroker.prototype.reachability
Since 0.1.0
RabbitMqBroker.prototype.reachability(): Promise<boolean>

Tri-state backend reachability (M70c).

false while the supervisor is in a fault window (the connection dropped and the drive-mode reconnect has not yet succeeded); true otherwise. This reads the fault flag directly — it is a zero-cost, always-current value, so caching it (as the I/O probes do) would make the signal stale exactly when it matters.

Return Type

Promise<boolean>

true when reachable, false when the broker is in a fault window

Usage

import { RabbitMqBroker } from "messaging-plugin/src/index.ts";