1
0
Fork 1
mirror of https://example.com synced 2024-11-27 19:46:39 +09:00
firefish/packages/calckey-js/markdown/calckey-js.stream.usechannel.md

29 lines
807 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2023-07-03 07:18:30 +09:00
[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 | |
2023-07-03 07:18:30 +09:00
| params | [Channels](./firefish-js.channels.md)<!-- -->\[C\]\["params"\] | _(Optional)_ |
| name | string | _(Optional)_ |
**Returns:**
2023-07-03 07:18:30 +09:00
[Connection](./firefish-js.channelconnection.md)<!-- -->&lt;[Channels](./firefish-js.channels.md)<!-- -->\[C\]&gt;