How to determine conversation is available in Genesys when page gets reload or new tab opens?

I have implemented the Genesys web messaging in Headless mode. When user clicking the "Start Chat" button in the web page, the system initiates the MessagingService.startConversation command. We then monitor the MessagingService.started event to confirm that the connection has been successfully established. Once the connection is live, the MessagingService.sendMessage command is invoked to send a message.

If page gets reload or new tab opening, my "Start Chat" will visible. I need to avoid MessagingService.startConversation command because we started the conversation.

Now how to determine conversation already exists ?

if page gets reload or new tab opening and how to continue the conversation ?

How to address the scenario, can any one help me for this

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.