Avaya Client SDK

< Back to Package Overview

Join Avaya Co-Browsing Session

Using the SharingServices Package, the Customer can join live Avaya Co-Browsing session created by customer.

To join Avaya Co-Browsing session, you must complete the following activities.

  • Register Join Live Session Callbacks
  • Join Live Session

Register Join Live Session Callbacks

You must register onSuccess and onFailure callbacks. The onSuccess callback is called to report that the Customer has joined live session successfully. Agent gets notification that the Customer has joined the session. The onFailure callback is called to report a failure in live join session

    var onSuccess = function (data) {
        // Called to report live co-browsing session
        // has been joined successfully
        // Add code here to notify customer 
    };

    var onFailure = function (error) {
        // Called to report failure in join live session
        // Add code here to notify customer
    };  

Join Live Session

To join Avaya Co-Browsing session, you must provide customer name, and Session Key. Agent shares session key with the Customer during voice call or chat or video.

    _cbinstance.joinSession(name, sessionKey).then(onSuccess.bind(this),onFailure);