LivePersonInc / node-agent-sdk

LivePerson Agent Messaging SDK for NodeJS
MIT License
49 stars 78 forks source link

All Agents States Subscription In Node Agent SDK #88

Open danishmarif opened 5 years ago

danishmarif commented 5 years ago

Is there any function in node agent sdk through which we can subscribe to all agents states and get update events/notifications once there state changes? Such as the RetrieveAvailableAgents REST API Call in LivePerson's Chat Agent API, which for the first and other call without a timestamp provide all agents states, and on API call along with the timestamp gives only the delta from that time. There is a method, "subscribeAgentsState" , but according to the documentation I found and understanding of it, it'll update only the bot's state.

bzier commented 5 years ago

You are correct in your understanding of subscribeAgentsState. It only supports subscribing to the current agent. There is not currently any API for all agents.