createBroadcastTopic()
function createBroadcastTopic<T>(event): BroadcastTopic<T>;
Defined in: @browser/broadcast-channel-pool.ts:96
创建一个 BroadcastChannel 主题
Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
Parameters
| Parameter | Type | Description |
|---|---|---|
event | string | 频道名称 |
Returns
BroadcastTopic 对象,包含消息流和发送方法