Emitted when the agent's session is terminated by the platform.
This event fires when the platform ends the agent's session - for example due to
a session timeout, an administrative action, or the agent being logged out remotely.
Example
user.subscribe(UserEventType.USER_LOGOUT, (event) => { console.log("Session ended for agent:", event.payload.userId); // Clear state and redirect to login });
Emitted when the agent's session is terminated by the platform.
This event fires when the platform ends the agent's session - for example due to a session timeout, an administrative action, or the agent being logged out remotely.
Example
See