2023-06-24 13:13:03 +09:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
2023-07-22 02:33:01 +09:00
|
|
|
[Home](./index.md) > [iceshrimp-js](./iceshrimp-js.md) > [Stream](./iceshrimp-js.stream.md) > [(constructor)](./iceshrimp-js.stream._constructor_.md)
|
2023-06-24 13:13:03 +09: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)_ |
|
|
|
|
|