valkyrie-docs/docs/api/valkyrie-js.channelconnection._constructor_.md

23 lines
624 B
Markdown
Raw Normal View History

2023-08-01 05:58:34 -07:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index) &gt; [valkyrie-js](./valkyrie-js) &gt; [ChannelConnection](./valkyrie-js.channelconnection) &gt; [(constructor)](./valkyrie-js.channelconnection._constructor_)
## ChannelConnection.(constructor)
Constructs a new instance of the `Connection` class
**Signature:**
```typescript
constructor(stream: Stream, channel: string, name?: string);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| stream | [Stream](./valkyrie-js.stream) | |
| channel | string | |
| name | string | _(Optional)_ |