MyPureCloud / webrtc-troubleshooter

MIT License
30 stars 8 forks source link
webrtc webrtc-tools

webrtc-troubleshooter

Build Status Coverage Status

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

Getting Started

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.

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