June 2024
Beginner to intermediate
268 pages
6h 26m
English
Still, there are some things to learn about signaling and WebRTC connections in general from this failed three-way call. Step back and consider what’s happening when a peer-to-peer call is established between exactly two peers: as soon as the JavaScript loads, each side of the call creates a single instance of RTCPeerConnection on the $peer object for the remote peer. That one instance enables two peers to negotiate a connection with each other over the signaling channel.
When a third peer’s browser joins the same peer-to-peer namespace as the first two, there’s a serious problem: each peer has exactly one instance of RTCPeerConnection to work with, representing exactly one remote peer. When the signaling ...
Read now
Unlock full access