I am developing a Script in which a popup is opened when the agent attends the interaction.
I need this popup to close automatically when the agent has finished his after work (acw) time. I have thought about subscribing to a Notifications topic but reviewing the available list I have doubts about the topic that can help me.
Few weeks ago, I would have said "v2.users.{id}.conversations".
With the need to filter received events in your code (filter for events with your conversationId, wait for all participants to be disconnected and the wrapup structure to be set/defined).
But I just noticed in the Available topics that the "v2.detail.events.conversation.xxxx" topics, which had been initially introduced for EventBridge and Process Automation, appear to be available with WebSocket as well (I just tried once and it worked).
In this case, based on conversationId, you could rely on "v2.detail.events.conversation.{id}.acw".