This page was last edited on March 10, 2020, at 13:56.
Comments or questions about this documentation? Contact us for support!
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.
_genesys.chat.onReady.push(function(chat) {
chat.onSession(function(session) {
session.sendMessage('Automatically sent chat message');
});
});