ReadonlyconnectionsEvery open connection other than this one first, then each new one as it joins. The same
MessageBusClient object is handed out for a connection across subscriptions, so it
can be kept in a Set. A connection stays listed until it calls disconnect(); the SDK
does that when the owning SanityInstance is disposed.
Tears down this connection: pending requests reject ABORTED, subscriptions
complete, and later emit, query, and subscribe calls fail with ABORTED.
Siblings and the shared bus are untouched.
Emits an event topic and provides its reply when awaited.
Reads the current or next value of a state topic.
Optionaloptions: MessageBusQueryOptionsRuns a responder for each event until its signal aborts.
Optionaloptions: MessageBusAbortOptionsRuns a handler for each state value until its signal aborts.
Optionaloptions: MessageBusAbortOptionsReturns a state topic as a MessageBusStateSource.
Returns an event topic as an observable of its payloads.
The host's connection to the bus.
Remarks
State reaches an application only through MessageBusClient.emit. There is no broadcast: sending the same value to everyone is a loop over
connections, and giving a new connection the current values is done when it appears there, as an SSE server writes a snapshot to each new client.