Created
December 21, 2018 09:07
-
-
Save enricop89/05c980181890ccb40c4e9e15a3edaa64 to your computer and use it in GitHub Desktop.
User connected Event
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 Client = BandyerChat.create({ | |
userAlias: 'usr_123456', | |
appId: 'wAppId_fake123456', | |
environment: 'sandbox', | |
hidden: false, | |
screenSharingExtensionId: 'id of your screen sharing extension' | |
}); | |
Client.on('user_connected',(user) => { | |
if (user.role === 'group_b'){ // your custom logic | |
BandyerChat.addChat(user.id) | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment