Using the SharingServices Package, you can configure Avaya Co-Browsing features for the Agent website.
Use the enableHighlight() method to enable the Highlight feature. By default the Highlight feature is enabled.
_cbinstance.enableHighlight();
Use the disableHighlight() method to disable the Highlight feature.
_cbinstance.disableHighlight();
Use the setHighlightColor() method to set the Highlight color. By default the Highlight color is yellow.
_cbinstance.setHighlightColor(color);
Use the enableElementHighlight() method to enable the Highlight element feature. By default the Highlight element feature is enabled.
_cbinstance.enableElementHighlight();
Use the disableElementHighlight() method to disable the Highlight element feature.
_cbinstance.disableElementHighlight();
Note:Mouse double click for text selection to highlight selected text is not supported.
To set connection retry attempts, you must provide the count. This specifies the number of attempts that the Agent service makes to connect to the Breeze server. The default value is 10.
_cbinstance.setAgentConnectionRetryAttempts(retryAttempts);
To set connection retry attempts, you must provide the time in milliseconds. This specifies the interval after which the Agent service attempts to connect to the Breeze server. The default value is 10000.
_cbinstance.setAgentConnectionRetryInterval(connectionRetryInterval);
To set css path, you must provide the css directory path. The default value is 'css/'.
_cbinstance.setAgentCSSPath(AgentCSSPath);
To set image path, you must provide the image directory path. The default value is 'img/'.
_cbinstance.setAgentImagePath(AgentImagePath);
To set the mouse and scroll synchronization interval, you must provide the time in milliseconds. This specifies the interval after which the Agent synchronizes mouse trails and scroll position with the Customer.The default value is 1000.
_cbinstance.setMouseScrollSyncInterval(mouseScrollSyncInterval);
To record inactivity timeout activities, you must provide the time in seconds.
_cbinstance.updateIdleTime(_inactiveMessageCounter);
Configuration data is critical for initializing the Avaya Co-Browsing Client SDK. Services are created and initialized according to their corresponding configuration data during initialization. After the Avaya Co-Browsing Client SDK is initialized, if you need to change any configuration options for any services or enable/disable certain services, the Avaya Co-Browsing Client SDK must be re-initialized with the updated configuration data. Dynamic changes of configuration options are not supported. Verify that if there is any changes made then they are reflected or not after reload.