@akkadu/rtc-errors

The goal of this module is to catch errors from RTC modules and provide one place to react to them.

Usage no npm install needed!

<script type="module">
  import akkaduRtcErrors from 'https://cdn.skypack.dev/@akkadu/rtc-errors';
</script>

README

Description

The goal of this module is to catch errors from RTC modules and provide one place to react to them.

Cases handled

  • RTC related errors, such as RTCPeerConnection not supported, are caught. As a response we set localStorage to force the use of AgoraRTS. These types of errors happen mostly when WebRTC is not supported and we use AgoraRTS because it is WS based.