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