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

Tri-state backend reachability (M70c).

There is no backend to be unreachable: the bus is in-process, so the answer is simply whether the broker is running. true while ready, false before connect() or after disconnect().

Return Type

Promise<boolean>

true when the broker is running, false otherwise

Usage

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