Skip to content

Instantly share code, notes, and snippets.

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