The set of events that a Queue object can emit.
Use these with Queue.subscribe to listen for changes to a specific queue - such as when the agent logs in or out of the queue.
queue.subscribe(QueueEventType.QUEUE_STATUS_CHANGED, (event) => { console.log("Queue login status:", event.payload.loggedIn);}); Copy
queue.subscribe(QueueEventType.QUEUE_STATUS_CHANGED, (event) => { console.log("Queue login status:", event.payload.loggedIn);});
Fired when the agent's login status for this queue changes (e.g. logged in or logged out). Payload: QueueStatusChangedPayload
The set of events that a Queue object can emit.
Use these with Queue.subscribe to listen for changes to a specific queue - such as when the agent logs in or out of the queue.
Example