3.1.0 • Published 11 months ago

@cs-chatbots/cobrowsing v3.1.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
11 months ago

Cobrowsing

Unified Cobrowsing Solution. It offers uniform control and appearance of the following solutions:

  • Teamviewer (chatvisor)
  • Avaya (Live Support) - not implemented yet
  • Unblu (embedded cobrowsing) - not implemented yet

Integration

Installation

npm install @cs-chatbots/cobrowsing

Teamviewer provider integration example

import { cobrowsing, CobrowsingProvider } from '@cs-chatbots/cobrowsing'

const options = {
    provider: CobrowsingProvider.TV,
    scriptUri: 'https://staging.engage.teamviewer.com/cdn/js/abcdefgh.js'
}

const { init, isActive, start, stop } = cobrowsing(options);

start(); // Starts Teamviewer Cobrowsing session

Teamviewer Options

OptionDescription
providerSpecified provider. E. g. CobrowsingProvider.TV
scriptUriScript URI of the Teamviewer solution E.g. 'https://staging.engage.teamviewer.com/cdn/js/abcdefgh.js'
onStartOn start callback. It is triggered when the user starts the Cobrowsing session.
onStopOn stop callback. It is triggered when the user stops the Cobrowsing session.

Teamviewer Functions

methoddescription
initThe init() function. It should be called right after the page is loaded. Possibly during the bootstrap phase. It ensures that the selected solution is loaded and the Cobrowsing session continues. It was created primarily to ensure the continuity of the Cobrowsing session after the page reload.
isActiveThe isActive() function. Returns a boolean value which shows if the Cobrowsing session is active/connected.
startThe start() function. Starts the Cobrowsing session. A small UI interface is shown where the session id is visible and the Cobrowsing session can be deactivated.
stopThe stop() function. Stops the Cobrowsing session. The UI for closing the session is destroyed. Should be called on user logout if the Cobrawsing session is active.

Development

npm install
npm run start

Dev server starts on http://localhost:4000/

3.1.0

11 months ago

3.0.0

1 year ago

1.1.0

1 year ago

2.0.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago