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)) {
|
||||
console.log('🟥 Emit to initiatorSocket');
|
||||
initiatorSocket.emit('new-producer', {
|
||||
videoCalls[callId].initiatorSocket.emit('new-producer', {
|
||||
callId
|
||||
});
|
||||
|
||||
} else {
|
||||
console.log('🟥 Emit to receiverSocket');
|
||||
receiverSocket.emit('new-producer', {
|
||||
videoCalls[callId].receiverSocket.emit('new-producer', {
|
||||
callId
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user