rudeshark.net/packages/firefish-js/markdown/firefish-js.stream.usechannel.md
ThatOneCalculator ff08ec77ee
we be renamin
2023-07-15 14:21:17 -07:00

29 lines
807 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [firefish-js](./firefish-js.md) &gt; [Stream](./firefish-js.stream.md) &gt; [useChannel](./firefish-js.stream.usechannel.md)
## Stream.useChannel() method
**Signature:**
```typescript
useChannel<C extends keyof Channels>(
channel: C,
params?: Channels[C]["params"],
name?: string,
): Connection<Channels[C]>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| channel | C | |
| params | [Channels](./firefish-js.channels.md)<!-- -->\[C\]\["params"\] | _(Optional)_ |
| name | string | _(Optional)_ |
**Returns:**
[Connection](./firefish-js.channelconnection.md)<!-- -->&lt;[Channels](./firefish-js.channels.md)<!-- -->\[C\]&gt;