Avaya Client SDK

< Back to Package Overview

Pause Avaya Co-Browsing Session

Using the SharingServices Package, the Customer can pause a Avaya Co-Browsing session during active Avaya Co-Browsing.

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

  • Register Pause Avaya Co-Browsing Session Callbacks
  • Pause Avaya Co-Browsing Session

Register Pause Avaya Co-Browsing Session Callbacks

You must register onSuccess and onFailure callbacks. The onSuccess callback is called to report that Avaya Co-Browsing session is paused. The onFailure callback is called to report a failure in pause Avaya Co-Browsing session.

    var onSuccess = function (data) {
        // Called to report co-browsing
        // session is paused
        // Add code here to notify customer
    };

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

Pause Avaya Co-Browsing Session

Call pause() method to pause Avaya Co-Browsing Session. Agent gets notification that Avaya Co-Browsing session is paused.

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