mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
28 lines
807 B
Markdown
28 lines
807 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [firefish-js](./firefish-js.md) > [Stream](./firefish-js.stream.md) > [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)<!-- --><[Channels](./firefish-js.channels.md)<!-- -->\[C\]>
|
|
|