JSON.parse(evt.data), sdp; if ( message.sdp ) { sdp = new RTCSessionDescription(message.sdp); // ૬ख༻ʢremoteʣʹηοτ peer.setRemoteDescription(sdp, function() { // ࣗͷOffer-SDPͩͬͨΒAnswerΛฦ͢ if ( sdp.type === "offer" ) { peer.createAnswer(function(sdp) { peer.setLocalDescription(sdp, function() { // ηοτྃͨ͠Βɺ૬खʹࣗͷSDPΛૹΔ websokcet.send(JSON.stringify({ "sdp": sdp, "uuid": uuid })); })); }); } }); } }; ᶄɾᶆ ᶅ