iceshrimp/packages/iceshrimp-js/markdown/iceshrimp-js.channelconnection._constructor_.md

23 lines
666 B
Markdown
Raw Permalink Normal View History

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