Skip to content

basalt / realtime/src / RealtimeBackplane

Interface: RealtimeBackplane ​

Defined in: realtime/src/hub.ts:32

Fans messages out across instances. In a single process the in-memory backplane loops straight back; with Redis, publish → PUBLISH and every instance (including this one) receives it via SUBSCRIBE, so delivery is uniform whether you run one node or many.

Methods ​

close()? ​

> optional close(): Promise<void>

Defined in: realtime/src/hub.ts:35

Returns ​

Promise<void>


publish() ​

> publish(message): Promise<void>

Defined in: realtime/src/hub.ts:33

Parameters ​

message ​

BackplaneMessage

Returns ​

Promise<void>


subscribe() ​

> subscribe(handler): Promise<void>

Defined in: realtime/src/hub.ts:34

Parameters ​

handler ​

(message) => void

Returns ​

Promise<void>

Released under the MIT License.