From 0a2305bcf565bd8750791273b7dd15398f37056c Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Wed, 8 Feb 2023 03:48:43 +0200 Subject: [PATCH] Update Client show error correctly --- public/bundle.js | 9 ++------- public/index.js | 10 ++-------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index a181dae..c0b729b 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20455,7 +20455,7 @@ setTimeout(() => { socket.on('new-producer', ({ callId }) => { console.log(`🟢 new-producer | callId: ${callId} | Ready to consume`); - // consume() + consume() }) } @@ -20735,7 +20735,6 @@ const connectSendTransport = async () => { // Enable Close call button const closeCallBtn = document.getElementById('btnCloseCall'); closeCallBtn.removeAttribute('disabled'); - consume() } const createRecvTransport = async () => { @@ -20775,11 +20774,7 @@ const createRecvTransport = async () => { errback(error) } }) - - consumerTransport.observer.on("newproducer", (producer) => { - console.log("new producer created [id:%s]", producer.id); - }); - // connectRecvTransport() + connectRecvTransport() }) } diff --git a/public/index.js b/public/index.js index 19fe1a0..04091d5 100644 --- a/public/index.js +++ b/public/index.js @@ -97,7 +97,7 @@ setTimeout(() => { socket.on('new-producer', ({ callId }) => { console.log(`🟢 new-producer | callId: ${callId} | Ready to consume`); - // consume() + consume() }) } @@ -377,8 +377,6 @@ const connectSendTransport = async () => { // Enable Close call button const closeCallBtn = document.getElementById('btnCloseCall'); closeCallBtn.removeAttribute('disabled'); - // consume() - createRecvTransport() } const createRecvTransport = async () => { @@ -418,11 +416,7 @@ const createRecvTransport = async () => { errback(error) } }) - - consumerTransport.observer.on("newproducer", (producer) => { - console.log("new producer created [id:%s]", producer.id); - }); - // connectRecvTransport() + connectRecvTransport() }) }