So I'm looking for a way to confirm that a wrap-up code has been entered successfully into the system. I found this post, which points to this page in the docs, and I have that part working... I think. It returns status code 202, as the docs say it would, but I'm not sure what to make of this: "one should poll or subscribe to updates to verify that submitted wrap-up appears on the participant to consider it a success." How exactly would one accomplish this?
// After that code that gives me the 202, I currently have code like this: var ch = await notifications.postNotificationsChannels(), ws = new WebSocket(ch.connectUri); ws.onmessage = async function(msg) { console.log(msg); }); notifications.putNotificationsChannelSubscriptions(ch.id, [{ id:
v2.detail.events.conversation.${conversationID}.acw }]);
This is giving me a lot of "WebSocket heartbeat" messages, but no notifications about actual changes. Of course on writing this, I realize that I should probably have this before sending the 202'er. Am I on the right track here? Not sure what else "subscribe" could mean in this context.
On a similar note, what about getting the ACW timer? Can I subscribe to have a notification when it runs out? Thanks in advance.
PS: Sorry for the lack of newline chars in my code... this editor does not like what I'm doing. Maybe have its version of Markdown do something like ```js?