Please Help, This code is not showing any ice candidate
peerConnection.addEventListener('icecandidate', event => { console.log("onicecandicate", event.candidate) peerConnection.setLocalDescription(event.candidate); ws.send(JSON.stringify({type:"icecandidate", candidate:event.candidate})); });
This is also not working
peerConnection.onicecandidate = (event) => {console.log("onicecandicate", event)if (event.candidate !== null) {peerConnection.setLocalDescription(event.candidate);console.log("Candidate :", event.candidate);ws.send(JSON.stringify({type:"icecandidate", candidate:event.candidate}));} else {alert("Ice candidate not found")} }