According official guide, "AgentDisconnect" just has explanation as follow:
Indicates that the agent has been disconnected from the chat.
but I don't know how to utilize it. can someone give me more explanation?
According official guide, "AgentDisconnect" just has explanation as follow:
Indicates that the agent has been disconnected from the chat.
but I don't know how to utilize it. can someone give me more explanation?
AgentDisconnect isn't a resource, it's type of message in Messages body response:
The Messages request returns an array of objects that represent all the events that occurred during an agent’s chat with a chat customer. This request can return several subtypes with unique response bodies, depending on the events that occurred within the chat.
You should listen liveagent events at https://hostname/chat/rest/System/Messages
AgentDisconnect type example:
{
"messages": [{
"type": "AgentDisconnect",
"message": {}
}],
"sequence": 2
}
e.g. ChatEstablished type:
{
"messages": [{
"type": "ChatEstablished",
"message": {
"chasitorIdleTimeout": {
"isEnabled": false
},
"sneakPeekEnabled": true,
"name": "ilya l",
"userId": "00536000000FT8P"
}
}],
"sequence": 1
}
Well, you could update the user with a user-friendly message to indicate the operator disconnected. Bear in mind, this API is meant to be used when you are implementing Live Agent from scratch so statuses like this help you provide the correct information back in the UI.