<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [calckey-js](./calckey-js.md) &gt; [ChannelConnection](./calckey-js.channelconnection.md)

## ChannelConnection class

**Signature:**

```typescript
export declare abstract class Connection<
	Channel extends AnyOf<Channels> = any,
> extends EventEmitter<Channel["events"]> 
```
**Extends:** EventEmitter&lt;Channel\["events"\]&gt;

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(stream, channel, name)](./calckey-js.channelconnection._constructor_.md) |  | Constructs a new instance of the <code>Connection</code> class |

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [channel](./calckey-js.channelconnection.channel.md) |  | string |  |
|  [id](./calckey-js.channelconnection.id.md) | <code>abstract</code> | 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) | <code>protected</code> | [Stream](./calckey-js.stream.md) |  |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [dispose()](./calckey-js.channelconnection.dispose.md) | <code>abstract</code> |  |
|  [send(type, body)](./calckey-js.channelconnection.send.md) |  |  |

