Skip to main content

Interface: DataBusHost

Defined in: src/sdk/data/DataBus.ts:46

Experimental

A provider of subscribable DataItems that also supports publishing changes to the same data items.

Extends

Methods

of()

of<R, I>(): TypedDataBusHost<R, I>

Defined in: src/sdk/data/DataBus.ts:56

Experimental

Retrieves a typed data bus host that provides and allows publishing to data items described by a record type.

Type Parameters

Type ParameterDefault typeDescription
R extends Record<string, unknown>Record<never, never>A record describing the data items available from the typed host to return. The name of each property in the record defines one label that can be used to access a data item, and the type of the property defines the value type of data items accessed using the label (under any index).
I extends numbernumberThe indexes for which data items are available from the host.

Returns

TypedDataBusHost<R, I>

A typed data bus host that provides and allows publishing to data items described by the specified record type.

Overrides

DataBusClient.of