WebMessagingClient Java SDK reconnect issue

Hi,

We are trying to reconnect the existing session on Genesys Cloud through WebMessagingClient. Our Scenario is like this : User successfully connected to an agent, backend is down and we are trying to restore session from stored datas. We are calling getJwt() method on client to get token but after backend loss on restoring session part when we use the configureSession(genesysDeploymentId, token, ORIGIN) it is creating new session, not connecting the existing one.

1 Like

Hi Samet,

Welcome on Genesys Forum !

The getJwt() function is used to get a token to query history end point.

To reconnect, you should used the initial token you used on the first connection . It should resume the current session

BTW getJwt() is using also the first token used

Let me know if it's worked

regards

Hi Frederic,

Actually, we didn't use a token on the first connection. Thanks to your response, we changed this logic and gave our token to ApiClient. Thank you so much.

Best regards.

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