mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-28 21:08:52 -07:00
91dddc439f
This resolves possible confusion between iceshrimp-js (this project) and iceshrimp-sdk (the package)
36 lines
1.3 KiB
Markdown
36 lines
1.3 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [iceshrimp-sdk](./iceshrimp-sdk.md) > [Stream](./iceshrimp-sdk.stream.md)
|
|
|
|
## Stream class
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
export default class Stream extends EventEmitter<StreamEvents>
|
|
```
|
|
**Extends:** EventEmitter<StreamEvents>
|
|
|
|
## Constructors
|
|
|
|
| Constructor | Modifiers | Description |
|
|
| --- | --- | --- |
|
|
| [(constructor)(origin, user, options)](./iceshrimp-sdk.stream._constructor_.md) | | Constructs a new instance of the <code>Stream</code> class |
|
|
|
|
## Properties
|
|
|
|
| Property | Modifiers | Type | Description |
|
|
| --- | --- | --- | --- |
|
|
| [state](./iceshrimp-sdk.stream.state.md) | | "initializing" \| "reconnecting" \| "connected" | |
|
|
|
|
## Methods
|
|
|
|
| Method | Modifiers | Description |
|
|
| --- | --- | --- |
|
|
| [close()](./iceshrimp-sdk.stream.close.md) | | |
|
|
| [disconnectToChannel(connection)](./iceshrimp-sdk.stream.disconnecttochannel.md) | | |
|
|
| [removeSharedConnection(connection)](./iceshrimp-sdk.stream.removesharedconnection.md) | | |
|
|
| [removeSharedConnectionPool(pool)](./iceshrimp-sdk.stream.removesharedconnectionpool.md) | | |
|
|
| [send(typeOrPayload, payload)](./iceshrimp-sdk.stream.send.md) | | |
|
|
| [useChannel(channel, params, name)](./iceshrimp-sdk.stream.usechannel.md) | | |
|
|
|