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