trashposs/packages/trashposs-js/markdown/trashposs-js.stream._constructor_.md

31 lines
685 B
Markdown
Raw Permalink Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2024-04-06 22:57:52 +02:00
[Home](./index.md) &gt; [trashposs-js](./trashposs-js.md) &gt; [Stream](./trashposs-js.stream.md) &gt; [(constructor)](./trashposs-js.stream._constructor_.md)
## 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)_ |