Socket
Socket
Sign inDemoInstall

@webex/rtcstats

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webex/rtcstats

Low-level logging on peerconnection API calls and periodic getStats calls for analytics/debugging purposes


Version published
Maintainers
0
Created
Source

rtcstats.js

Low-level logging on peerconnection API calls and periodic getStats calls for analytics/debugging purposes

Note: This is a fork of https://github.com/fippo/rtcstats configured for typescript. It no longer wraps WebRTC methods but instead takes in and logs stats from a RTCPeerConnection argument.

Integration

import { rtcStats } from 'rtcstats';

const pc = new RTCPeerConnection();

// log peerconnection events with `console.log`, also calls `pc`'s `.getStats()` every 5 seconds.
rtcStats(pc, console.log, 5000);

build

Install Depencies and run yarn build, output will be in the local dist/ folder.

yarn
yarn build

typescript

You may take the typescript file rtcstats.ts and drop it in your project.

import { rtcStats } from './my-project-utils/rtcstats';

FAQs

Package last updated on 10 Sep 2024

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