LINXD-2270-p2 #19
2
app.js
2
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('createWebRtcTransport1', async (data, callback) => {
|
||||
socket.on('createWebRtcTransport', async (data, callback) => {
|
||||
try {
|
||||
console.log('🟥 WARNING', JSON.stringify(data));
|
||||
console.log('createWebRtcTransport-----------------------data', data);
|
||||
|
@ -20582,7 +20582,7 @@ const createSendTransport = () => {
|
||||
// this is a call from Producer, so sender = true
|
||||
console.log('EMIT sender: true!!!!!!!!!!!!!!!!!!!!');
|
||||
// const data1 = { sender: 'true123', test: '123', sender1: true };
|
||||
socket.emit('createWebRtcTransport1', { sender: 'true123', test: '123', sender1: true }, (value) => {
|
||||
socket.emit('createWebRtcTransport', { sender: 'true123', test: '123', sender1: true }, (value) => {
|
||||
|
||||
console.log(`[createWebRtcTransport] value: ${JSON.stringify(value)}`);
|
||||
|
||||
|
@ -224,7 +224,7 @@ const createSendTransport = () => {
|
||||
// this is a call from Producer, so sender = true
|
||||
console.log('EMIT sender: true!!!!!!!!!!!!!!!!!!!!');
|
||||
// const data1 = { sender: 'true123', test: '123', sender1: true };
|
||||
socket.emit('createWebRtcTransport1', { sender: 'true123', test: '123', sender1: true }, (value) => {
|
||||
socket.emit('createWebRtcTransport', { sender: 'true123', test: '123', sender1: true }, (value) => {
|
||||
|
||||
console.log(`[createWebRtcTransport] value: ${JSON.stringify(value)}`);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user