Skip to content

Class: VoiceStatePublisher ​

Defined in: voiceState.ts:11

Serializes status changes so a slow request cannot overwrite a newer toggle. One publisher belongs to one participant session; stop it when that session ends.

Constructors ​

Constructor ​

ts
new VoiceStatePublisher(publish): VoiceStatePublisher;

Defined in: voiceState.ts:21

Parameters ​

ParameterType
publish(state) => Promise<unknown>

Returns ​

VoiceStatePublisher

Methods ​

republish() ​

ts
republish(): void;

Defined in: voiceState.ts:35

Restore the current status after the signalling connection recovers.

Returns ​

void


stop() ​

ts
stop(): void;

Defined in: voiceState.ts:44

Returns ​

void


update() ​

ts
update(state): void;

Defined in: voiceState.ts:25

Parameters ​

ParameterType
stateIVoiceState

Returns ​

void

Released under the GNU Affero General Public License v3.0.