LAPI-675: Update server go emit new-producer; Update client to handle this event

This commit is contained in:
2023-01-13 18:32:11 +02:00
parent eece7d2ee3
commit 9b4e0186ac
2 changed files with 27 additions and 63 deletions

View File

@ -95,6 +95,10 @@ setTimeout(() => {
}
if (IS_PRODUCER && urlParams.get('testing') === 'true') { getLocalStream() }
})
socket.on('new-producer', ({ callId }) => {
console.log(`🟥 new-producer | callId: ${callId}`);
})
}
if (IS_PRODUCER === true) {