valkyrie-docs/docs/api/valkyrie-js.stream._constructor_.md
2023-08-02 00:58:34 +12:00

30 lines
639 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index) &gt; [valkyrie-js](./valkyrie-js) &gt; [Stream](./valkyrie-js.stream) &gt; [(constructor)](./valkyrie-js.stream._constructor_)
## Stream.(constructor)
Constructs a new instance of the `Stream` class
**Signature:**
```typescript
constructor(
origin: string,
user: {
token: string;
} | null,
options?: {
WebSocket?: any;
},
);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| origin | string | |
| user | { token: string; } \| null | |
| options | { WebSocket?: any; } | _(Optional)_ |