Created
January 23, 2021 14:59
-
-
Save rebelchris/e07c726267df410ab54c1a183fe07eda to your computer and use it in GitHub Desktop.
Join function
This file contains hidden or 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
| 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