Legacy Dev Forum Posts

 View Only

Sign Up

WebMessagingClient Java SDK reconnect issue

  • 1.  WebMessagingClient Java SDK reconnect issue

    Posted 06-05-2025 18:37

    Samet_Budak | 2023-06-20 13:35:16 UTC | #1

    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.


    Frederic_Thomas | 2023-06-22 14:43:10 UTC | #2

    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


    Samet_Budak | 2023-06-22 18:27:37 UTC | #3

    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.


    system | 2023-07-22 18:28:28 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 20553