Avaya Client SDK

< Back to Package Overview

Grant Avaya Co-Browsing Session Control

Using the SharingServices Package, the Customer can grant Avaya Co-Browsing session control during active Avaya Co-Browsing.

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

  • Register Grant Avaya Co-Browsing Session Control Callbacks
  • Grant Control

Register Grant Avaya Co-Browsing Session Control Callbacks

You must register onSuccess and onFailure callbacks. The onSuccess callback is called to report that the Customer has granted Avaya Co-Browsing Session control for the agent request. The onFailure callback is called to report a failure in grant Avaya Co-Browsing session control.

    var onSuccess = function () {
        // Called to report customer has granted
        // control of Co-Browsing Session
        // Add code here to notify customer 
    };

    var onFailure = function (error) {
        // Called to report failure in 
        // grant co-browsing session control
        // Add code here to notify customer
    };  

Grant Control

Call grantControl() method to grant Avaya Co-Browsing Session Control. Agent gets notification that Customer has granted Avaya Co-Browsing Session Control.

    _cbinstance.grantControl().then(onSuccess.bind(this), onFailure);