Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created March 17, 2023 19:30
Show Gist options
  • Save sendbird-community/5b735eca8c177b3a77c45c057e133461 to your computer and use it in GitHub Desktop.
Save sendbird-community/5b735eca8c177b3a77c45c057e133461 to your computer and use it in GitHub Desktop.
async function enterRoom () {
//A Sendbird websocket is required in order to listen for real time updates from other Group Call participants.
await SendBirdCall.connectWebSocket()
const room = await SendBirdCall.fetchRoomById(roomId)
const enterParams = {videoEnabled: false, audioEnabled: true};
await room.enter(enterParams);
addSendbirdCallsListener(room)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment