Function: createChannel()
function createChannel<M>(name, options?): Channel<M>;
Typed pub/sub over the same-origin bus.
Type Parameters
| Type Parameter |
|---|
M extends MessageMap |
Parameters
| Parameter | Type |
|---|---|
name | string |
options | CommonOptions |
Returns
Channel<M>