Created
May 8, 2023 04:35
-
-
Save sendbird-community/0866331471efe2120c9b993e2bb82757 to your computer and use it in GitHub Desktop.
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
SendBirdCall.addListener('LISTENER_ID', { | |
onInvitationReceived: (invitation) => { | |
invitation.accept(); | |
try { | |
invitation.room.enter(); | |
// The user has entered the room. | |
} catch (e) { | |
// error happened. | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment