Socket
Socket
Sign inDemoInstall

webrtc-tools

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    webrtc-tools

WebRTC tools


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

WebRTC-Tools

English | 简体中文

demo: https://ltsg123.github.io/webrtc-tools/example/

Install

Use npm

# with npm
npm i webrtc-tools

CDN is also provided

<script src="https://ltsg123.github.io/webrtc-tools/dist/index.js"></script>

Example image:

Using

import { createTimeline } from "webrtc-tools";
const options = {
  // View Update Interval
  scale: 100,
  // Bottom Timeline Interval
  timeStep: 10 * 1000,
};

// create a timeline graph
const graph = createTimeline("key", "canvasId", options);

// set boundaries
graph.setBoundaries("up", 500, "blue");

// add graph point
setInterval(() => {
  graph.addGraphPoint(Math.random() * 1000);
}, 1000 / 30);

build

yarn

yarn build

dev

yarn

yarn dev

Any questions you can contact me at ltsg0317@outlook.com

Keywords

FAQs

Last updated on 27 Jan 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc