Added console logging in web example

This commit is contained in:
Paul-Louis Ageneau
2020-11-29 17:00:43 +01:00
parent 4d93303be8
commit c6bee7b0d4

View File

@ -59,6 +59,7 @@ function openSignaling(url) {
ws.onmessage = (e) => {
if(typeof(e.data) != 'string') return;
const message = JSON.parse(e.data);
console.log(message);
const { id, type } = message;
let pc = peerConnectionMap[id];