Created
June 14, 2020 13:43
-
-
Save shriyaRam/4f65eed9016b8a870d8454b97901fa13 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
//leave channel | |
leavebtn.addEventListener("click",()=>{ | |
channel.leave(); | |
flag = false; | |
}) | |
}) | |
//logout | |
outbtn.addEventListener("click",()=>{ | |
client.logout().then(()=> {console.log("Client logged out.")}).catch(()=> {console.log("log out failed")}); | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment