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