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