Skip to content

Instantly share code, notes, and snippets.

@sunny7899
Created February 23, 2022 13:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
hideBtns = true;
async startCall() {
const uid = this.stream.generateUid();
const rtcDetails = await this.stream.generateTokenAndUid(uid);
this.stream.createRTCClient();
this.stream.agoraServerEvents(this.stream.rtc);
await this.stream.localUser(rtcDetails.token, uid);
this.hideBtns = false;
}
async logout() {
await this.stream.leaveCall();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment