WebRTC with async/await

WebRTC with async/await

Basic WebRTC connection setup can be confusing to understand, and there really is a lot going on that is black magic. Even so, just getting a single page connection going is confusing. I wanted to try writing some async/await code to test out browser compatibility and try different patterns, so I figured writing a basic WebRTC Sample might be a good option. As it turned out, I'm super pleased with the code. It's very easy to read and understand. My only disclaimer here is that this does not show interactivity with a signaling server - this is just a single page sample, but it is a true WebRTC Peer Connection setup with exchange of ICE candidates.