parse-params #9

Closed
sergiu wants to merge 13 commits from parse-params into master
Showing only changes of commit 4a8afb7d47 - Show all commits

10
app.js
View File

@ -232,6 +232,16 @@ peers.on('connection', async socket => {
socket.on('transport-produce', async ({ kind, rtpParameters, appData }) => {
try {
const callId = socketDetails[socket.id];
console.log('kind typeof', typeof kind);
console.log('kind', kind);
console.log('rtpParameters typeof', typeof rtpParameters);
console.log('rtpParameters', rtpParameters);
console.log('appData typeof', typeof appData);
console.log('appData', appData);
if (typeof kind === 'string') kind = JSON.parse(kind);
if (typeof rtpParameters === 'string') rtpParameters = JSON.parse(rtpParameters);