working out an example with 2 clients trying to connect
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" ---------------------> "type": "answer", "answer": { "sdp": "v=0\r\n...", "type": "answer" }, "name": "userA" <--------------------- "type": "answer", "answer": { "sdp": "v=0\r\n...", "type": "answer" } <--------------------- "type": "candidate", "candidate": { "candidate": "candidate:842163049 1 udp 1677729535 192.168.1.2 56143 typ host", "sdpMid": "0", "sdpMLineIndex": 0 }, "name": "userB" ---------------------> "type": "candidate", "candidate": { "candidate": "candidate:842163049 1 udp 1677729535 192.168.1.2 56143 typ host", "sdpMid": "0", "sdpMLineIndex": 0 }, "name": "userA" --------------------->
"sdp": "v=0\r\n...",
stuff is about agreeing on what protocols, types of messages, etc. And SDP is currently at version 0openDataChannel
and onDataChannel
addTrack
and onTrack