jormungandr-bite/packages/iceshrimp-sdk/markdown/iceshrimp-sdk.stream.md
Laura Hausmann 91dddc439f
[sdk] Rename iceshrimp-js package to iceshrimp-sdk
This resolves possible confusion between iceshrimp-js (this project) and iceshrimp-sdk (the package)
2024-07-23 23:15:19 +02:00

1.3 KiB

Home > iceshrimp-sdk > Stream

Stream class

Signature:

export default class Stream extends EventEmitter<StreamEvents> 

Extends: EventEmitter<StreamEvents>

Constructors

Constructor Modifiers Description
(constructor)(origin, user, options) Constructs a new instance of the Stream class

Properties

Property Modifiers Type Description
state "initializing" | "reconnecting" | "connected"

Methods

Method Modifiers Description
close()
disconnectToChannel(connection)
removeSharedConnection(connection)
removeSharedConnectionPool(pool)
send(typeOrPayload, payload)
useChannel(channel, params, name)