video-quickstart-js icon indicating copy to clipboard operation
video-quickstart-js copied to clipboard

How do we get the disconnect reason when triggered by the server?

Open tylers-username opened this issue 3 years ago • 0 comments

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?

tylers-username avatar Nov 06 '21 17:11 tylers-username