Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

haomingli2020
Copy link
Collaborator

…d is received over websocket

Issue #, if available:

  • Agent can use Quick Connect to transfer chat to another Agent.
  • After transfer, current Agent chat connection - should not receive new messages from websocket
  • this change, cleans up the event listeners and breaks the current chat connection after chat has successfully transferred.

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.

@haomingli2020 haomingli2020 requested a review from a team as a code owner November 25, 2024 05:45
@haomingli2020 haomingli2020 requested review from mrajatttt and spenlep-amzn and removed request for a team November 25, 2024 05:45
@agarwhi agarwhi merged commit ef5b28c into master Dec 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants