mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 02:17:40 -07:00
39 lines
1.5 KiB
Markdown
39 lines
1.5 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[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<Channels> = any,
|
|
> extends EventEmitter<Channel["events"]>
|
|
```
|
|
**Extends:** EventEmitter<Channel\["events"\]>
|
|
|
|
## 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) | | |
|
|
|