Hi @Subrahmanyam
Every time I refresh my web page chatbot also gets refreshed. Please let me know if there is any option to maintain the chatbot state or can I load the chat history data.
You can’t, the websocket connection is closed automatically when the page is closed (refreshed).
You would have to implement your own session logic, maybe store cookie/localStorage data on the client side and restore the (previous) client data on page load.
You could load the chat history based on the flag loadHistory
flag present in the index.html file, but I doubt it would resolve the main problem here (WS connection loading with the previous session details).
Is this still the case? If user accidentally refreshes (especially during live chat), restarting would not be ideal.