LH-259: Update createRoom callback

This commit is contained in:
Sergiu Toma 2022-10-24 22:16:47 +03:00
parent 24390c98e5
commit 9f8347bec5

5
app.js
View File

@ -164,7 +164,10 @@ peers.on('connection', async socket => {
// rtpCapabilities is set for callback
console.log('[getRtpCapabilities] callId', callId);
callbackResponse = videoCalls[callId].router.rtpCapabilities;
callbackResponse = {
rtpCapabilities :videoCalls[callId].router.rtpCapabilities
};
callback(callbackResponse);
} else {
console.log(`[createRoom] missing callId ${callId}`);
}