video-quickstart-js
video-quickstart-js copied to clipboard
How do we get the disconnect reason when triggered by the server?
I'm able to set RoomStatus to "Completed" which will end the call for all participants and have a use case for that.
My understanding is that Twilio sends a message to all users with reason: Completed
as a property, however, I'm unable to catch this in the on.('disconnected')
event.
Is there a mechanism built in to catch this?