Remove logs

This commit is contained in:
Sergiu Toma 2022-10-05 15:08:16 +03:00
parent 4c7fb73048
commit 4a7dec00f3

18
app.js
View File

@ -232,17 +232,6 @@ peers.on('connection', async socket => {
socket.on('transport-produce', async ({ kind, rtpParameters, appData }, callback) => {
try {
const callId = socketDetails[socket.id];
console.log('kind typeof', typeof kind);
console.log('kind', kind);
console.log('rtpParameters typeof', typeof rtpParameters);
console.log('rtpParameters', rtpParameters);
console.log('appData typeof', typeof appData);
console.log('appData', appData);
// if (typeof kind === 'string') kind = JSON.parse(kind);
if (typeof rtpParameters === 'string') rtpParameters = JSON.parse(rtpParameters);
console.log('[transport-produce] | socket.id', socket.id, '| callId', callId);
@ -258,11 +247,10 @@ peers.on('connection', async socket => {
closeCall(callId);
});
console.log('----------- videoCalls[callId].producer.id', videoCalls[callId].producer.id);
// Send back to the client the Producer's id
callback({
id: videoCalls[callId].producer.id
});
// callback({
// id: videoCalls[callId].producer.id
// });
} catch (error) {
console.log(`ERROR | transport-produce | callId ${socketDetails[socket.id]} | ${error.message}`);
}