If a visitor uses the Close button to end a chat session, the operator is displayed the "Chat Ended: This chat session has been ended" message immediately. However, if the visitor ends the session by using the X to close the browser window, there's a delay and the agent will be shown the following message: "The customer lost connection. If they don't reconnect soon, the chat will end" before the "Chat session ended by visitor" message is displayed to the operator.
Salesforce Chat is designed to time out the visitor connection to determine whether they have closed the browser or are experiencing a temporary connectivity issue.
When a visitor clicks the X button in the browser, our server doesn't know if they actually closed the window or if they're experiencing temporary connectivity issues. Therefore, Salesforce Chat is designed to time the visitor out to determine that they've closed the window. This can result in a delay before the chat session is ended.
The timeout period from the other end, the agent's side, is about 60-70 seconds. Once the timeout period has passed, this closes the session for the customer, and they will need to restart the chat request process.
Please note that the timeout period can vary (from no waiting period to more than a minute) depending on the browser you're using (Firefox, Chrome, IE....) and this behavior also applies to browsers on mobile devices.
000381576

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.