2023-06-23 22:13:03 -06:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
2023-07-02 16:18:30 -06:00
|
|
|
[Home](./index.md) > [firefish-js](./firefish-js.md) > [Stream](./firefish-js.stream.md) > [(constructor)](./firefish-js.stream._constructor_.md)
|
2023-06-23 22:13:03 -06:00
|
|
|
|
|
|
|
## 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)_ |
|
|
|
|
|