trashposs/packages/trashposs-js/markdown/trashposs-js.stream.md
2024-04-06 22:57:52 +02:00

37 lines
1.3 KiB
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [trashposs-js](./trashposs-js.md) &gt; [Stream](./trashposs-js.stream.md)
## Stream class
**Signature:**
```typescript
export default class Stream extends EventEmitter<StreamEvents>
```
**Extends:** EventEmitter&lt;StreamEvents&gt;
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(origin, user, options)](./trashposs-js.stream._constructor_.md) | | Constructs a new instance of the <code>Stream</code> class |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [state](./trashposs-js.stream.state.md) | | "initializing" \| "reconnecting" \| "connected" | |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [close()](./trashposs-js.stream.close.md) | | |
| [disconnectToChannel(connection)](./trashposs-js.stream.disconnecttochannel.md) | | |
| [removeSharedConnection(connection)](./trashposs-js.stream.removesharedconnection.md) | | |
| [removeSharedConnectionPool(pool)](./trashposs-js.stream.removesharedconnectionpool.md) | | |
| [send(typeOrPayload, payload)](./trashposs-js.stream.send.md) | | |
| [useChannel(channel, params, name)](./trashposs-js.stream.usechannel.md) | | |