rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
153 lines (68 loc) • 2.18 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [DebugWeakBroadcastChannel](./rc-js-util.debugweakbroadcastchannel.md)
## DebugWeakBroadcastChannel class
Like [BroadcastChannel](./rc-js-util.broadcastchannel.md) but without holding strong references. Available in debug contexts only.
**Signature:**
```typescript
export declare class DebugWeakBroadcastChannel<TKey extends string, TArgs extends unknown[]> implements IBroadcastChannel<TKey, TArgs>
```
**Implements:** [IBroadcastChannel](./rc-js-util.ibroadcastchannel.md)<!-- --><TKey, TArgs>
## Constructors
<table><thead><tr><th>
Constructor
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[(constructor)(key)](./rc-js-util.debugweakbroadcastchannel._constructor_.md)
</td><td>
</td><td>
Constructs a new instance of the `DebugWeakBroadcastChannel` class
</td></tr>
</tbody></table>
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[addListener(listener)](./rc-js-util.debugweakbroadcastchannel.addlistener.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[addListener(store, listener)](./rc-js-util.debugweakbroadcastchannel.addlistener_1.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[addOneTimeListener(listener)](./rc-js-util.debugweakbroadcastchannel.addonetimelistener.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[addOneTimeListener(store, listener)](./rc-js-util.debugweakbroadcastchannel.addonetimelistener_1.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[emit(args)](./rc-js-util.debugweakbroadcastchannel.emit.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[getTargets()](./rc-js-util.debugweakbroadcastchannel.gettargets.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[removeListener(listener)](./rc-js-util.debugweakbroadcastchannel.removelistener.md)
</td><td>
</td><td>
</td></tr>
</tbody></table>