2023-06-24 06:13:03 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
2023-07-21 19:33:01 +02:00
|
|
|
[Home](./index.md) > [iceshrimp-js](./iceshrimp-js.md) > [ChannelConnection](./iceshrimp-js.channelconnection.md) > [(constructor)](./iceshrimp-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-21 19:33:01 +02:00
|
|
|
| stream | [Stream](./iceshrimp-js.stream.md) | |
|
2023-06-24 06:13:03 +02:00
|
|
|
| channel | string | |
|
|
|
|
| name | string | _(Optional)_ |
|
|
|
|
|