Skip to content

Instantly share code, notes, and snippets.

@rebelchris
Created January 23, 2021 14:59
Show Gist options
  • Save rebelchris/e07c726267df410ab54c1a183fe07eda to your computer and use it in GitHub Desktop.
Save rebelchris/e07c726267df410ab54c1a183fe07eda to your computer and use it in GitHub Desktop.
Join function
const join = async () => {
rtc.client = AgoraRTC.createClient({ mode: "rtc", codec: "vp8" });
return await rtc.client.join(
options.appId,
options.channel,
options.token,
null
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment