Skip to content

MemoryBus

Defined in: memory.ts:35

An in-process broadcast hub. Note that messages are passed by reference — there is no serialization — so treat inbound messages as immutable and send fresh values; do not mutate a message after sending it.

Type Parameter
T
new MemoryBus<T>(options?): MemoryBus<T>;

Defined in: memory.ts:41

ParameterType
optionsMemoryBusOptions

MemoryBus<T>

get size(): number;

Defined in: memory.ts:46

Number of currently open endpoints.

number

connect(): Transport<T>;

Defined in: memory.ts:51

Open a new endpoint connected to every other endpoint on this bus.

Transport<T>