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