Configuring a WebRTC App for Public Deployment

Ever since Setting Up the Peer Connection, you’ve worked around a sad null value on $self’s rtcConfig value. That’s worked fine for developing and testing out WebRTC apps within the friendly confines of your local network. But any publicly deployed WebRTC app needs to connect to a STUN server, which enables a WebRTC app’s users to discover routes to their locations on the internet (see Set Servers to STUN). Users then share that information with each remote peer over the signaling channel in the form of additional ICE candidates.

Get Programming WebRTC now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.