Avaya Client SDK

< Back to Package Overview

Cancel Avaya Co-Browsing Session Control Request

Using the SharingServices Package, Agent can cancel the initiated Avaya Co-Browsing session control request if already not granted by the customer.

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

  • Register Cancel Request Avaya Co-Browsing Session Control Callbacks
  • Cancel Control Request

Register Cancel Request Avaya Co-Browsing Session Control Callbacks

You must register onSuccess and onFailure callbacks. The onSuccess callback is called to report that the Agent has cancelled the Avaya Co-Browsing Session control request.The onFailure callback is called to report a failure in cancel Avaya Co-Browsing session control request.

    var onSuccess = function (data) {
        // Called to report agent has cancelled
        // the Co-Browsing Session control request
        // Add code here to notify agent 
    };

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

Cancel Control Request

Call cancelRequestControl() method to cancel the Avaya Co-Browsing Session Control request. Customer gets notification on the registered callback method "addOnCancelRequestControlCallback" at customer end.

    _cbinstance.cancelRequestControl().then(onSuccess, onFailure);