Handling Events

In order to listen for AloAudio events you need to add event listeners to the AloAudio.events object. For example:

aloAudio.events.addEventListener(
 'onDisconnect', event => { console.log("onDisconnect:", event.detail); }
)

The event object may contain additional information about the event in event.detail

See the following Events:

Last updated

Logo

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