2023-06-24 04:13:03 +00:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2023-07-02 22:18:30 +00:00
[Home ](./index.md ) > [firefish-js ](./firefish-js.md ) > [ChannelConnection ](./firefish-js.channelconnection.md )
2023-06-24 04:13:03 +00:00
## ChannelConnection class
**Signature:**
```typescript
export declare abstract class Connection<
Channel extends AnyOf< Channels > = any,
> extends EventEmitter<Channel["events"]>
```
**Extends:** EventEmitter< Channel\["events"\]>
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
2023-07-02 22:18:30 +00:00
| [(constructor)(stream, channel, name) ](./firefish-js.channelconnection._constructor_.md ) | | Constructs a new instance of the < code > Connection</ code > class |
2023-06-24 04:13:03 +00:00
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
2023-07-02 22:18:30 +00:00
| [channel ](./firefish-js.channelconnection.channel.md ) | | string | |
| [id ](./firefish-js.channelconnection.id.md ) | < code > abstract</ code > | 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 ) | < code > protected</ code > | [Stream ](./firefish-js.stream.md ) | |
2023-06-24 04:13:03 +00:00
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
2023-07-02 22:18:30 +00:00
| [dispose() ](./firefish-js.channelconnection.dispose.md ) | < code > abstract</ code > | |
| [send(type, body) ](./firefish-js.channelconnection.send.md ) | | |
2023-06-24 04:13:03 +00:00