From 13694915294d0ad6ab90564499e667ed13c33b7e Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 24 Nov 2022 23:22:55 +0200 Subject: [PATCH] Update server --- public/bundle.js | 9 +++++---- public/index.js | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index 4bf5e42..525c0c5 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20620,16 +20620,17 @@ const createSendTransport = () => { console.log('[createSendTransport'); // see server's socket.on('createWebRtcTransport', sender?, ...) // this is a call from Producer, so sender = true - socket.emit('createWebRtcTransport', { sender: true, callId }, ({ params }) => { + socket.emit('createWebRtcTransport', { sender: true, callId }, (value) => { + + console.log(`[createWebRtcTransport] value: ${value}`); + + const params = value; // The server sends back params needed // to create Send Transport on the client side if (params.error) { console.log(params.error) return } - - console.log('[createWebRtcTransport] params', params) - // creates a new WebRTC Transport to send media // based on the server's producer transport params // https://mediasoup.org/documentation/v3/mediasoup-client/api/#TransportOptions diff --git a/public/index.js b/public/index.js index bf14996..a6c66f7 100644 --- a/public/index.js +++ b/public/index.js @@ -262,16 +262,17 @@ const createSendTransport = () => { console.log('[createSendTransport'); // see server's socket.on('createWebRtcTransport', sender?, ...) // this is a call from Producer, so sender = true - socket.emit('createWebRtcTransport', { sender: true, callId }, ({ params }) => { + socket.emit('createWebRtcTransport', { sender: true, callId }, (value) => { + + console.log(`[createWebRtcTransport] value: ${value}`); + + const params = value; // The server sends back params needed // to create Send Transport on the client side if (params.error) { console.log(params.error) return } - - console.log('[createWebRtcTransport] params', params) - // creates a new WebRTC Transport to send media // based on the server's producer transport params // https://mediasoup.org/documentation/v3/mediasoup-client/api/#TransportOptions