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