Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cs-chatbots/cobrowsing

Package Overview
Dependencies
Maintainers
9
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cs-chatbots/cobrowsing

Cobrowsing

  • 3.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

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/

FAQs

Package last updated on 15 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc