[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( channel: C, params?: Channels[C]["params"], name?: string, ): Connection; ``` ## 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\]>