Skip to content

basalt / realtime/src / MemoryBackplane

Class: MemoryBackplane ​

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

Single-process backplane: publish invokes the subscriber synchronously.

Implements ​

Constructors ​

Constructor ​

> new MemoryBackplane(): MemoryBackplane

Returns ​

MemoryBackplane

Methods ​

publish() ​

> publish(message): Promise<void>

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

Parameters ​

message ​

BackplaneMessage

Returns ​

Promise<void>

Implementation of ​

RealtimeBackplane.publish


subscribe() ​

> subscribe(handler): Promise<void>

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

Parameters ​

handler ​

(message) => void

Returns ​

Promise<void>

Implementation of ​

RealtimeBackplane.subscribe

Released under the MIT License.