Huge News!Announcing our $40M Series B led by Abstract Ventures.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.6
  • npm
  • Socket score

Version published
Weekly downloads
3.9K
increased by70.35%
Maintainers
2
Weekly downloads
 
Created
Source

watchRTC offers users the ability to collect, track and analyze the metrics of real users on any WebRTC application.

This is done by including our watchRTC SDK which connects to the testRTC backend.

Installation

npm i @testrtc/watchrtc-sdk

Integration

Before any of your webrtc javascript code, add the following:

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

This will transparently modify the RTCPeerConnection objects, allowing it to connect to the watchRTC backend service. The watchrtc parameter is needed to make this connection.

  • rtcApiKey - the watchRTC API key, as provided by testRTC
  • rtcRoomId - an identifier to the session/room/conference. This will enable an analysis of all participants in the same room as a single logical unit
  • rtcPeerId - an identifer of this peer/user in the session. This will make it easier to identify and troubleshoot users. It is recommended to use non-PII data here as much as possible
var pc = new RTCPeerConnection({
  ...,
  watchrtc:{
    rtcApiKey: "watchrtc api key",
    rtcRoomId: "identifier for the session"
    rtcPeerId: "identifier for the current peer",
  }
});

Do not forget

For the operation of watchRTC, we have a websocket connected to our backend service for the duration of the session. Once you close the peer connection, you should also close our own websocket connection by calling

window.closeWSConnection();

Keywords

FAQs

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