Created
March 27, 2020 20:33
-
-
Save shriyaRam/023d3b059fb730defaf6e122f90bad42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hangup() { | |
console.log('Ending call'); | |
pc1.close(); | |
pc2.close(); | |
pc1 = null; | |
pc2 = null; | |
hangupButton.disabled = true; | |
callButton.disabled = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment