const Video = require("");
const token = "";
const connectOptions = {logLevel: "off"}
const startRoom = function(token) {
console.log("hello world");
Video.connect(a)
.then(room => null
})
.catch(error => {
console.log("error");
return error
});
}
The async/await will lead to removal of catch. Which is what I want to achieve.