Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created March 17, 2023 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sendbird-community/39adf882ff5e14c3fda6cd7d75b91c37 to your computer and use it in GitHub Desktop.
Save sendbird-community/39adf882ff5e14c3fda6cd7d75b91c37 to your computer and use it in GitHub Desktop.
// Declare variables that will be used later in the code
var roomId;
var client;
var callee;
var sendbirdUser;
(async () => {
client = await app.initialized()
const context = await client.instance.context()
callee = context.data.ticketCreatorData.contact
agent = context.data.agentData.loggedInUser
sendbirdUser = context.data.sendbirdUser
initSendbirdCalls()
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment