[Home](./index.md) > [trashposs-js](./trashposs-js.md) > [ChannelConnection](./trashposs-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)](./trashposs-js.channelconnection._constructor_.md) | | Constructs a new instance of the Connection class | ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [channel](./trashposs-js.channelconnection.channel.md) | | string | | | [id](./trashposs-js.channelconnection.id.md) | abstract | string | | | [inCount](./trashposs-js.channelconnection.incount.md) | | number | | | [name?](./trashposs-js.channelconnection.name.md) | | string | _(Optional)_ | | [outCount](./trashposs-js.channelconnection.outcount.md) | | number | | | [stream](./trashposs-js.channelconnection.stream.md) | protected | [Stream](./trashposs-js.stream.md) | | ## Methods | Method | Modifiers | Description | | --- | --- | --- | | [dispose()](./trashposs-js.channelconnection.dispose.md) | abstract | | | [send(type, body)](./trashposs-js.channelconnection.send.md) | | |