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

webrtc-troubleshoot

Package Overview
Dependencies
Maintainers
3
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webrtc-troubleshoot

A way to add webrtc troubleshooting to your app

  • 11.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-91.97%
Maintainers
3
Weekly downloads
 
Created
Source

webrtc-troubleshooter

Build Status Coverage Status

This provides diagnostic tests for basic WebRTC functionality. See the test-page directory for usage.

Getting Started

  • git clone this repository
  • npm install
  • Run unit-tests using npm test
  • Develop against the diagnostic tests using npm start and navigating to http://localhost:8080/test-page

Develop

To develop diagnostic tests this repo has a utility ./test-page/index.html that pulls in the tests and runs them in the browser. For WebRTC connections, most of the tests force the use of relay since the tests make peer connections to the same host.

  • npm start will run webpack with the --watch flag and serve the test-page using stupid server.
    • This is super helpful when you are writing new tests. You will still need to refrash the browser to pick up any new changes, but at least webpack will rebuild the app when you save a file :)

test-page/index.html for console output of 6 tests to ensure webrtc is properly functioning

Here is a stringified version of google's STUN servers for quick reference. Granted, you will still need an active TURN server for some of these tests to pass, but this will get the tests started.

[{"type":"stun","urls":"stun:stun.l.google.com:19302"}]

Testing

The tests now use Jest!

Test names must match the *.spec.ts or *.spec.js naming convention. This is configured in jest.config.js

  • npm test will run both linting, all the unit-test, and report coverage in text form in the command line.
  • npm run test:watch will run only the unit-tests and watch the files for changes (it also skips code coverage reporting).

FAQs

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