22 lines
624 B
Markdown
22 lines
624 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index) > [valkyrie-js](./valkyrie-js) > [ChannelConnection](./valkyrie-js.channelconnection) > [(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)_ |
|
|
|