frank_AOD | 2023-06-12 23:41:57 UTC | #1
Hi all,
I'm looking for a way that I can receive a notification from the WebSocket service when users log into or out of a queue. Previously, I've just polled regularly to this GET endpoint: /api/v2/routing/queues/{queueId}/users?expand=routingStatus%2Cpresence&presence=On%20Queue and that works ok, but I'm trying to move away from polling. Is there a WebSocket topic that will give me this information? I can't see anything that immediately suggests itself from the list of available topics.
Ebenezer_Osei | 2023-06-13 14:37:31 UTC | #2
If I understand your use case right, v2-routing-queues--id--users looks like the topic you are looking for.
Best
frank_AOD | 2023-06-14 00:18:48 UTC | #3
Thanks for the response, but that topic only sends a message when a user's queue membership is changed. I want to know when a user's routing status changes so I can be notified when someone goes from OFF_QUEUE to IDLE or INTERACTING etc.
system | 2023-07-15 00:19:29 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 20394