[Home](./index) > [valkyrie-js](./valkyrie-js) > [Stream](./valkyrie-js.stream) ## Stream class **Signature:** ```typescript export default class Stream extends EventEmitter ``` **Extends:** EventEmitter<StreamEvents> ## Constructors | Constructor | Modifiers | Description | | --- | --- | --- | | [(constructor)(origin, user, options)](./valkyrie-js.stream._constructor_) | | Constructs a new instance of the Stream class | ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [state](./valkyrie-js.stream.state) | | "initializing" \| "reconnecting" \| "connected" | | ## Methods | Method | Modifiers | Description | | --- | --- | --- | | [close()](./valkyrie-js.stream.close) | | | | [disconnectToChannel(connection)](./valkyrie-js.stream.disconnecttochannel) | | | | [removeSharedConnection(connection)](./valkyrie-js.stream.removesharedconnection) | | | | [removeSharedConnectionPool(pool)](./valkyrie-js.stream.removesharedconnectionpool) | | | | [send(typeOrPayload, payload)](./valkyrie-js.stream.send) | | | | [useChannel(channel, params, name)](./valkyrie-js.stream.usechannel) | | |