I have created an embedded chat box on a page using the javascript APIs. The embedded chat box is present on every page throughout the site. I would like to be able to pass a current chat from page to page. I am not too familiar with sessions and how they are used in LC. I do see resumeChat() and getSessionKey() in the API references but the documentation is limited. Can anyone help me get started.
In the simplest of terms, the way chat works on my site is as follows:
- When you enter the page, the chat API checks for availability. While inactive, there is an inactive start chat button
- Once there is an available operator, The start chat box goes active.
- Clicking on the start chat button starts the chat and the chat interface changes to reveals a new div that will be used for the chat activity.
- Within this div is where the chat back and forth conversation and the field for talking with the operator happens.
- The chat is ended by clicking on a close chat button. At this point the chat style is returned to it's default state.
All the functionality works great on the current page but I want to be able to continue the chat on any other page that the user clicks on.
Any help would be greatly appreciated.