Arnold
Arnold

Reputation: 191

detecting user disconnection from twilio room due to internet problems

I am using the twilio api, and there are are users connected to a room streaming their videos to it. However when one of the users disconnects, due to internet disconnection problems, the delegate which registers his disconnection from the room, does not get called. I wanted to ask how do I detect when a user disconnects due to internet problems? is making a periodic pings to all the users, the only way to do it? if yes, is there any way I can access the participant IPs to ping via the TVIParticipant?

Upvotes: 1

Views: 913

Answers (1)

philnash
philnash

Reputation: 73027

Twilio developer evangelist here.

This is actually a known error. The Twilio infrastructure can take up to 120 seconds to dispatch the disconnect event in this situation.

Please keep an eye on this issue for proposed improvements, progress and ETA on the issue.

Upvotes: 2

Related Questions