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

persistent live chat #534

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

brandontyler
Copy link

The following pull request is to allow lex-web-ui to maintain the connection
to Amazon connect chat session across browser refreshes.

*Issue # None

Description of changes:
Following the suggestion of this readme:
https://github.com/amazon-connect/amazon-connect-chatjs#handle-browser-refresh
I added several state variables:
participantToken: '',
participantId: '',
contactId: '',
reconnectToActiveChat

To see if a previous live chat session exists.  If so then pass in the saved state variables into:
connect.ChatSession.create

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

changes if you hit refresh
the previous connection to amazon
connect is made
@atjohns atjohns changed the base branch from master to development August 14, 2023 12:55
@atjohns
Copy link
Contributor

atjohns commented Aug 14, 2023

Will review in detail later this week, however persisting sessions should be a control that bot developers can turn on/off and not tied directly to saveHistory

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.

None yet

3 participants