Event fired when the agent's status changes (e.g. Available → Busy).
This event fires for both agent-initiated changes (e.g. the agent calling User.changeStatus) and platform-initiated changes.
Not fired for CX login/logout - see UserCxLoggedInEvent and UserCxLoggedOutEvent.
user.subscribe(UserEventType.USER_STATUS_CHANGED, (event) => { console.log("Status changed to:", event.payload.status.type);}); Copy
user.subscribe(UserEventType.USER_STATUS_CHANGED, (event) => { console.log("Status changed to:", event.payload.status.type);});
The timestamp when the event occurred.
The type of the user event.
The event payload containing event-specific data.
Event fired when the agent's status changes (e.g. Available → Busy).
This event fires for both agent-initiated changes (e.g. the agent calling User.changeStatus) and platform-initiated changes.
Not fired for CX login/logout - see UserCxLoggedInEvent and UserCxLoggedOutEvent.
Example
See