test
This commit is contained in:
parent
b287e7d0e7
commit
c7049ef909
4
app.js
4
app.js
@ -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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user