Streaming live at 10am (PST)

Chatbot and live agent


I would like to ask, for a chat bot in website base, is there any possible way for the live agent(live chat) that connected with a user from the bot to know or detect, whether the user close the chat to end the conversation or disconnected due to the page refresh?