Rxova
Skip to content

createChannel

function createChannel<M, R>(name, options?): Channel<M, R>;

Typed pub/sub over the same-origin bus.

Type ParameterDefault type
M extends MessageMap-
R extends Partial<Record<keyof M, unknown>>Record<never, never>
ParameterType
namestring
options?ChannelOptions<M>

Channel<M, R>