1
0
Fork 1
mirror of https://example.com synced 2024-11-28 08:26:39 +09:00
firefish/packages/calckey-js/markdown/calckey-js.stream.md
2023-06-23 21:13:03 -07:00

1.3 KiB

Home > calckey-js > 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)