Legacy Dev Forum Posts

 View Only

Sign Up

Agent Side Connection not getting disconnected on disconnect event called from website

  • 1.  Agent Side Connection not getting disconnected on disconnect event called from website

    Posted 06-05-2025 18:38

    Mahesh_Kumar | 2024-08-12 04:20:29 UTC | #1

    Hi,

    We are facing an issue with disconnecting the chat session. We are using below comand to close the connection from the webpage but we can still see the chat session not disconnected on agent side. { "action": "closeSession", "token": "0000000-0000-0000-0000-0000000000", "tracingId": "11111111-1111-1111-1111-111111111111", "closeAllConnections": true }

    Below are the actual request and response from the website

    Respone:-


    RanjithManikanteSa | 2024-08-13 17:03:23 UTC | #2

    Hi @Mahesh_Kumar,

    If you would like to disconnect the chat session for both parties, then your option is to clear the conversation. See [MessagingService.clearConversation](https://developer.genesys.cloud/commdigital/digital/webmessaging/messengersdk/SDKCommandsEvents/messagingServicePlugin#messagingservice-clearconversation) command. Also, when using this command please ensure Clear conversation is enabled in your Messenger configuration. Let us know if anything else.

    Thanks, Ranjith Sai


    system | 2024-09-12 17:03:55 UTC | #3

    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: 27819