2023-06-24 06:13:03 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
2023-07-03 00:18:30 +02:00
|
|
|
[Home](./index.md) > [firefish-js](./firefish-js.md) > [ChannelConnection](./firefish-js.channelconnection.md) > [(constructor)](./firefish-js.channelconnection._constructor_.md)
|
2023-06-24 06:13:03 +02:00
|
|
|
|
|
|
|
## ChannelConnection.(constructor)
|
|
|
|
|
|
|
|
Constructs a new instance of the `Connection` class
|
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
constructor(stream: Stream, channel: string, name?: string);
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2023-07-03 00:18:30 +02:00
|
|
|
| stream | [Stream](./firefish-js.stream.md) | |
|
2023-06-24 06:13:03 +02:00
|
|
|
| channel | string | |
|
|
|
|
| name | string | _(Optional)_ |
|
|
|
|
|