From 5abcddc115b3294ecd106ad3d55bd7d18a7d4677 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Fri, 16 Dec 2022 11:02:08 +0200 Subject: [PATCH] Update --- app.js | 2 +- public/bundle.js | 3 ++- public/index.js | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index a03e3b0..4054eed 100644 --- a/app.js +++ b/app.js @@ -223,7 +223,7 @@ peers.on('connection', async socket => { - If the client is producer(sender: true) then it will use parameters for device.createSendTransport(params) - If the client is a consumer(sender: false) then it will use parameters for device.createRecvTransport(params) */ - socket.on('createWebRtcTransport', async (data, callback) => { + socket.on('createWebRtcTransport1', async (data, callback) => { try { console.log('🟥 WARNING', JSON.stringify(data)); console.log('createWebRtcTransport-----------------------data', data); diff --git a/public/bundle.js b/public/bundle.js index 320a832..9fffb31 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20581,7 +20581,8 @@ const createSendTransport = () => { // see server's socket.on('createWebRtcTransport', sender?, ...) // this is a call from Producer, so sender = true console.log('EMIT sender: true!!!!!!!!!!!!!!!!!!!!'); - socket.emit('createWebRtcTransport', { sender: 'true123', test: '123', sender1: true }, (value) => { + // const data1 = { sender: 'true123', test: '123', sender1: true }; + socket.emit('createWebRtcTransport1', { sender: 'true123', test: '123', sender1: true }, (value) => { console.log(`[createWebRtcTransport] value: ${JSON.stringify(value)}`); diff --git a/public/index.js b/public/index.js index 669feee..3d4c7e4 100644 --- a/public/index.js +++ b/public/index.js @@ -223,7 +223,8 @@ const createSendTransport = () => { // see server's socket.on('createWebRtcTransport', sender?, ...) // this is a call from Producer, so sender = true console.log('EMIT sender: true!!!!!!!!!!!!!!!!!!!!'); - socket.emit('createWebRtcTransport', { sender: 'true123', test: '123', sender1: true }, (value) => { + // const data1 = { sender: 'true123', test: '123', sender1: true }; + socket.emit('createWebRtcTransport1', { sender: 'true123', test: '123', sender1: true }, (value) => { console.log(`[createWebRtcTransport] value: ${JSON.stringify(value)}`);