Jump to: navigation, search

onSession(callback)

Description

Important
This method may not be available in older versions of chat shipped with Genesys Co-browse 8.1 and Genesys Web Engagement 8.1.

This is an alternative method of accessing the Chat Service JS API. This method is an alternative to accessing the Chat Service JS API through the done callbacks of the startChat and restoreChat methods. This method may be useful if you do not control the startChat call, for example, when you use chat as part of the Integrated JavaScript Application.

Example

_genesys.chat.onReady.push(function(chat) {
  chat.onSession(function(session) {
    session.sendMessage('Automatically sent chat message');
  });
 
});

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on February 11, 2016, at 16:24.