New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

plivo-browser-sdk

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plivo-browser-sdk

This library allows you to connect with plivo's voice enviroment from browser

  • 2.2.1-beta.0
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
decreased by-8.07%
Maintainers
1
Weekly downloads
 
Created
Source

PlivoWebSDK

A pure javascript webRTC-SIP library

Getting Started

  • Documentation
  • Example App Repo
  • Hosted App Link

Installation

NPM

npm install plivo-browser-sdk --save

Usage:

const Plivo = require('plivo-browser-sdk');

or

import Plivo from 'plivo-browser-sdk'

CDN

<script type="text/javascript" src="https://cdn.plivo.com/sdk/browser/v2/plivo.min.js"></script>

Setup Development Environment

Install dependencies

npm install

Build

npm run build

Minified, production-ready build is created at dist/plivowebsdk.min.js

npm run build:nominify

A non-minified version of the build file is created dist/plivowebsdk.js

Start development server

npm start

This builds the SDK file and attaches it to the port 9000 - http://localhost:9000/plivowebsdk.js

This uses webpack-dev-server so, when there is a change in any file, the build file is auto build, When this is used in plivo-websdk-2.0-example, the app will auto reload with the build with latest changes

Testing

Unit tests

There is no extra setup required for running unit tests. You can run unit tests using:

npm run test:unit

Integration tests

Running integration tests require some setup:

  • Replace master and slave user login details in spec.js

After the setup, you can run integration tests using:

npm run test:integration

FAQs

Package last updated on 21 Dec 2020

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