This is an old revision of the document!


working out an example with 2 clients trying to connect

  • There has to be some sort of server outside of the ICE server that handles the signaling
  • The clients need some way to identify themselves on the signaling server so there is typically a login process. This is not required though.
  • The signaling server is typically accessed through websockets
  • Part of the point is to agree on an ICE server?
  • Signaling follows a protocol called SDP (Session Description Protocol). Looks something like:
Caller                      Signaling Server                      Target Peer
"type": "offer",
"offer": {
  "sdp": "v=0\r\n...",
  "type": "offer"
},
"name": "userB"
---------->
  
                            "type": "offer",
                            "offer": {
                              "sdp": "v=0\r\n...",
                              "type": "offer"
                            },
                            "name": "userA"
  
  
  • lwc/networking/webrtc.1737498539.txt.gz
  • Last modified: 2025/01/21 16:28
  • by John Harrison