2023-07-21 19:33:01 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
2024-04-06 22:57:52 +02:00
|
|
|
[Home](./index.md) > [trashposs-js](./trashposs-js.md) > [Stream](./trashposs-js.stream.md)
|
2023-07-21 19:33:01 +02:00
|
|
|
|
|
|
|
## Stream class
|
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export default class Stream extends EventEmitter<StreamEvents>
|
|
|
|
```
|
|
|
|
**Extends:** EventEmitter<StreamEvents>
|
|
|
|
|
|
|
|
## Constructors
|
|
|
|
|
|
|
|
| Constructor | Modifiers | Description |
|
|
|
|
| --- | --- | --- |
|
2024-04-06 22:57:52 +02:00
|
|
|
| [(constructor)(origin, user, options)](./trashposs-js.stream._constructor_.md) | | Constructs a new instance of the <code>Stream</code> class |
|
2023-07-21 19:33:01 +02:00
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
| Property | Modifiers | Type | Description |
|
|
|
|
| --- | --- | --- | --- |
|
2024-04-06 22:57:52 +02:00
|
|
|
| [state](./trashposs-js.stream.state.md) | | "initializing" \| "reconnecting" \| "connected" | |
|
2023-07-21 19:33:01 +02:00
|
|
|
|
|
|
|
## Methods
|
|
|
|
|
|
|
|
| Method | Modifiers | Description |
|
|
|
|
| --- | --- | --- |
|
2024-04-06 22:57:52 +02:00
|
|
|
| [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) | | |
|
2023-07-21 19:33:01 +02:00
|
|
|
|