[Home](./index.md) > [iceshrimp-js](./iceshrimp-js.md) > [ChannelConnection](./iceshrimp-js.channelconnection.md) ## ChannelConnection class **Signature:** ```typescript export declare abstract class Connection< Channel extends AnyOf = any, > extends EventEmitter ``` **Extends:** EventEmitter<Channel\["events"\]> ## Constructors | Constructor | Modifiers | Description | | --- | --- | --- | | [(constructor)(stream, channel, name)](./iceshrimp-js.channelconnection._constructor_.md) | | Constructs a new instance of the Connection class | ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [channel](./iceshrimp-js.channelconnection.channel.md) | | string | | | [id](./iceshrimp-js.channelconnection.id.md) | abstract | string | | | [inCount](./iceshrimp-js.channelconnection.incount.md) | | number | | | [name?](./iceshrimp-js.channelconnection.name.md) | | string | _(Optional)_ | | [outCount](./iceshrimp-js.channelconnection.outcount.md) | | number | | | [stream](./iceshrimp-js.channelconnection.stream.md) | protected | [Stream](./iceshrimp-js.stream.md) | | ## Methods | Method | Modifiers | Description | | --- | --- | --- | | [dispose()](./iceshrimp-js.channelconnection.dispose.md) | abstract | | | [send(type, body)](./iceshrimp-js.channelconnection.send.md) | | |