amazon-connect / amazon-connect-chatjs

Amazon Connect ChatJS - a browser-based contact center integration API for Chat on the Agent and Customer side.
https://docs.aws.amazon.com/connect/latest/adminguide/what-is-amazon-connect.html
Apache License 2.0
97 stars 56 forks source link

Clean up event subscriptions for agent session when transfer.succeede… #241

Open haomingli2020 opened 4 days ago

haomingli2020 commented 4 days ago

…d is received over websocket

Issue #, if available:

Note: participantId is not provided and transfer.succeeded event is only fanned out to current Agent who initiated the transfer. If 1 or more Agents receive transfer.succeeded event, its expected that all of there chat connections should end.

{\"AbsoluteTime\":\"2024-10-30T21:24:44.572Z\",\"ContentType\":\"application/vnd.amazonaws.connect.event.transfer.succeeded\",\"Id\":\"8ab8...\",\"Type\":\"EVENT\",\"InitialContactId\":\"bf6ae4fa-7eb7...\"}

Before fix

Screenshot 2024-11-24 at 9 44 51 PM

After fix

Screenshot 2024-11-24 at 9 44 33 PM

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.