Function: useChannel()
function useChannel<M>(name): Channel<M>;
Get the page-wide typed channel for name (one instance per name).
Type Parameters
| Type Parameter |
|---|
M extends MessageMap |
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
Channel<M>
function useChannel<M>(name): Channel<M>;
Get the page-wide typed channel for name (one instance per name).
| Type Parameter |
|---|
M extends MessageMap |
| Parameter | Type |
|---|---|
name | string |
Channel<M>