Rxova
Skip to content

Namespace

Everything a namespace makes, with the prefix already applied.

The same signatures as the bare factories, minus nothing — a namespace is a naming decision, not a reduced API.

readonly name: string;

The prefix every name from this namespace carries.

busName(name?): string;

What a bare name becomes here. Exposed so devtools, observeBus and tests can name the same bus.

ParameterType
name?string

string


createChannel<M>(name?, options?): Channel<M>;
Type Parameter
M extends MessageMap
ParameterType
name?string
options?ChannelOptions<M>

Channel<M>


createLeader(name?, options?): Leader;
ParameterType
name?string
options?LeaderOptions

Leader


createPresence(name?, options?): Presence;
ParameterType
name?string
options?PresenceOptions

Presence


createSharedStore<S>(
name,
initial,
options?): SharedStore<S>;
Type Parameter
S extends Record<string, unknown>
ParameterType
namestring | undefined
initialS
options?SharedStoreOptions<S>

SharedStore<S>