MCPcopy
hub / github.com/webrtc/samples / handleAnswer

Function handleAnswer

src/content/datachannel/channel/js/main.js:121–127  ·  view source on GitHub ↗
(answer)

Source from the content-addressed store, hash-verified

119}
120
121async function handleAnswer(answer) {
122 if (!pc) {
123 console.error('no peerconnection');
124 return;
125 }
126 await pc.setRemoteDescription(answer);
127}
128
129async function handleCandidate(candidate) {
130 if (!pc) {

Callers 1

main.jsFile · 0.70

Calls 2

errorMethod · 0.80
setRemoteDescriptionMethod · 0.80

Tested by

no test coverage detected