Created
January 23, 2021 15:05
-
-
Save rebelchris/b017d4558da39dd0aa03148f67731d03 to your computer and use it in GitHub Desktop.
Room full check
This file contains 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
rtc.client.on("user-published", async (user, mediaType) => { | |
if (rtc.client._users.length > 1) { | |
roomFull(); | |
} | |
// Rest of the code | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment