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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MemoryBus<T>(options?): MemoryBus<T>;Defined in: memory.ts:41
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options | MemoryBusOptions |
Returns
Section titled “Returns”MemoryBus<T>
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get size(): number;Defined in: memory.ts:46
Number of currently open endpoints.
Returns
Section titled “Returns”number
Methods
Section titled “Methods”connect()
Section titled “connect()”connect(): Transport<T>;Defined in: memory.ts:51
Open a new endpoint connected to every other endpoint on this bus.
Returns
Section titled “Returns”Transport<T>