Skip to content

Instantly share code, notes, and snippets.

@shriyaRam
Created June 14, 2020 14:03
Show Gist options
  • Save shriyaRam/995e7e8fafbb1d567ebcad41a772593c to your computer and use it in GitHub Desktop.
Save shriyaRam/995e7e8fafbb1d567ebcad41a772593c to your computer and use it in GitHub Desktop.
// Client Setup
// Defines a client for RTC
let client = AgoraRTC.createClient({
mode: 'live',
codec: "h264"
});
// Client Setup
// Defines a client for Real Time Communication
client.init("82ed46ddc986446a97ead5c10d1c23ee",() => console.log("AgoraRTC client initialized") ,handleFail);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment