[Home](./index.md) > [iceshrimp-sdk](./iceshrimp-sdk.md) > [Stream](./iceshrimp-sdk.stream.md) ## Stream class **Signature:** ```typescript export default class Stream extends EventEmitter ``` **Extends:** EventEmitter<StreamEvents> ## Constructors | Constructor | Modifiers | Description | | --- | --- | --- | | [(constructor)(origin, user, options)](./iceshrimp-sdk.stream._constructor_.md) | | Constructs a new instance of the Stream 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) | | |