mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
29 lines
814 B
Markdown
29 lines
814 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [trashposs-js](./trashposs-js.md) > [Stream](./trashposs-js.stream.md) > [useChannel](./trashposs-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](./trashposs-js.channels.md)<!-- -->\[C\]\["params"\] | _(Optional)_ |
|
|
| name | string | _(Optional)_ |
|
|
|
|
**Returns:**
|
|
|
|
[Connection](./trashposs-js.channelconnection.md)<!-- --><[Channels](./trashposs-js.channels.md)<!-- -->\[C\]>
|
|
|