Created
March 14, 2020 10:07
-
-
Save shriyaRam/422136832fea534cd279bf04a6a6bbfd 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 close(){ | |
client.unpublish(localstream, function(err) { | |
console.log("unpublished!"); | |
//…… | |
}) | |
client.leave(function() { | |
console.log("client leaves channel"); | |
//…… | |
}, function(err) { | |
console.log("client leave failed ", err); | |
//error handling | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment