twilio / video-quickstart-js

A quickstart and code samples for Twilio Video JavaScript SDK. https://www.twilio.com/docs/video
Other
389 stars 337 forks source link

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

Closed tylers-username closed 2 years ago

tylers-username commented 2 years ago

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?