-
-
Save DanyF-github/a34f38a8bdead0aac5f9ff12e43cd46e 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
// server/src/services/vonage/videoApi.js | |
... | |
const opentokSessionArgs = { | |
mediaMode: 'routed', | |
}; | |
... | |
const createSession = () => { | |
return new Promise((resolve, reject) => { | |
opentok.createSession(opentokSessionArgs, (err, session) => { | |
if (err) { | |
reject(err); | |
} else { | |
resolve(session); | |
} | |
}); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment