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