trashposs/packages/trashposs-js/markdown/trashposs-js.channelconnection.md
2024-04-06 22:57:52 +02:00

40 lines
1.5 KiB
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [trashposs-js](./trashposs-js.md) &gt; [ChannelConnection](./trashposs-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)](./trashposs-js.channelconnection._constructor_.md) | | Constructs a new instance of the <code>Connection</code> class |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [channel](./trashposs-js.channelconnection.channel.md) | | string | |
| [id](./trashposs-js.channelconnection.id.md) | <code>abstract</code> | string | |
| [inCount](./trashposs-js.channelconnection.incount.md) | | number | |
| [name?](./trashposs-js.channelconnection.name.md) | | string | _(Optional)_ |
| [outCount](./trashposs-js.channelconnection.outcount.md) | | number | |
| [stream](./trashposs-js.channelconnection.stream.md) | <code>protected</code> | [Stream](./trashposs-js.stream.md) | |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [dispose()](./trashposs-js.channelconnection.dispose.md) | <code>abstract</code> | |
| [send(type, body)](./trashposs-js.channelconnection.send.md) | | |