Since we started using the REST API approach in client-server communication, when a connection was closed on the client side, the guest status was no longer being updated.
This PR adds a new method that will allow the server to configure the Livechat connections, handling theonClose event that will update the guest status when the connection is closed.
Since we started using the REST API approach in client-server communication, when a connection was closed on the client side, the guest status was no longer being updated. This PR adds a new method that will allow the server to configure the Livechat connections, handling the
onClose
event that will update the guest status when the connection is closed.