[Home](./index.md) > [iceshrimp-js](./iceshrimp-js.md) > [ChannelConnection](./iceshrimp-js.channelconnection.md) > [(constructor)](./iceshrimp-js.channelconnection._constructor_.md) ## ChannelConnection.(constructor) Constructs a new instance of the `Connection` class **Signature:** ```typescript constructor(stream: Stream, channel: string, name?: string); ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | stream | [Stream](./iceshrimp-js.stream.md) | | | channel | string | | | name | string | _(Optional)_ |