Disconnecting Audio Service

Disconnecting

Invoking the disconnect() method will remove the user from any channel that they are currently participating in. All connections to the audio service will also be terminated.

aloAudio.disconnect();

Example onDisconnect Event Payloads

// when disconnect() is called
{
 detail: {state: "DISCONNECTED"}
}

// When disconnected unexpectedly
{
 detail: {
  state: "ERROR",
  message: "Lost connection to the server",
 }
}

Last updated

Logo

© Copyright 2024 ALO.ai, Inc. • All Rights Reserved