In my project, i have implemented Twilio for one to one chat, user can initiate chat from mobile app and operator will respond from web application.
So if chat is going on between user and operator and suddenly user close the chat then how operator will come to know that user has left the chat and vise-versa?