method RedisStreamsBroker.prototype.reachability
Since 0.1.0
RedisStreamsBroker.prototype.reachability(): Promise<boolean | undefined>

Tri-state backend reachability (M70c).

ioredis auto-reconnects via its default retry strategy, so the broker does not run a reconnect loop of its own; the truth is what ping() reports right now. true when ping() resolves, false when it rejects (the server is down or the socket is mid-reconnect), undefined when the injected client exposes no ping (a minimal fake) — in which case the indicator reports reachable: 'unknown' rather than lying.

Return Type

Promise<boolean | undefined>

true/false/undefined as described

Usage

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