trashposs/packages/trashposs-js/markdown/trashposs-js.channelconnection._constructor_.md

23 lines
666 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2024-04-06 22:57:52 +02:00
[Home](./index.md) &gt; [trashposs-js](./trashposs-js.md) &gt; [ChannelConnection](./trashposs-js.channelconnection.md) &gt; [(constructor)](./trashposs-js.channelconnection._constructor_.md)
## ChannelConnection.(constructor)
Constructs a new instance of the `Connection` class
**Signature:**
```typescript
constructor(stream: Stream, channel: string, name?: string);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2024-04-06 22:57:52 +02:00
| stream | [Stream](./trashposs-js.stream.md) | |
| channel | string | |
| name | string | _(Optional)_ |