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