Skip to content

Instantly share code, notes, and snippets.

@Vatsalya-singhi
Created August 3, 2020 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vatsalya-singhi/7d3e2624691cdf518d72c164ed4434a3 to your computer and use it in GitHub Desktop.
Save Vatsalya-singhi/7d3e2624691cdf518d72c164ed4434a3 to your computer and use it in GitHub Desktop.
public onicecandidateListener(event: RTCPeerConnectionIceEvent, id: string) {
if (event.candidate && event.candidate.sdpMid && event.candidate.sdpMLineIndex) {
this.socket.sendCandidate(id, event.candidate);
} else {
console.log('candidate not sent');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment