Browse Source

Added console logging in web example

Paul-Louis Ageneau 4 years ago
parent
commit
c6bee7b0d4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/web/script.js

+ 1 - 0
examples/web/script.js

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