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

@testrtc/watchrtc-sdk

Package Overview
Dependencies
Maintainers
2
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testrtc/watchrtc-sdk

gather WebRTC API traces and statistics

  • 1.26.1
  • npm
  • Socket score

Version published
Weekly downloads
4.3K
decreased by-16.59%
Maintainers
2
Weekly downloads
 
Created
Source

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

Installation

npm i watchrtc.js

Integration

Before any of your webrtc javascript.

require("@testrtc/qualityrtc-sdk")();

It will transparently modify the RTCPeerConnection objects and start sending data. If you need things like a client or conference identifier to be sent along, the recommended way is to use the legacy peerconnection constraints when constructing your RTCPeerConnection like this:

var pc = new RTCPeerConnection({
  ...,
  rtcApiKey: "watchrtc api key",
  rtcClientId: "your client identifier",
  rtcPeerId: "identifier for the current peer",
  rtcSessionId: "identifier for the session",
  wsUrl: "websocket url",
});

Do not forget

You need to close WS connection after webrtc is done by calling

window.closeWSConnection();

Keywords

FAQs

Package last updated on 16 Nov 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