This commit is contained in:
Sergiu Toma 2023-01-13 19:36:04 +02:00
parent b287e7d0e7
commit c7049ef909

4
app.js
View File

@ -302,13 +302,13 @@ peers.on('connection', async socket => {
if (!isInitiator(callId, socket.id)) { if (!isInitiator(callId, socket.id)) {
console.log('🟥 Emit to initiatorSocket'); console.log('🟥 Emit to initiatorSocket');
initiatorSocket.emit('new-producer', { videoCalls[callId].initiatorSocket.emit('new-producer', {
callId callId
}); });
} else { } else {
console.log('🟥 Emit to receiverSocket'); console.log('🟥 Emit to receiverSocket');
receiverSocket.emit('new-producer', { videoCalls[callId].receiverSocket.emit('new-producer', {
callId callId
}); });
} }