mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-09-01 14:49:25 +00:00
Added console logging in web example
This commit is contained in:
@ -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];
|
||||||
|
Reference in New Issue
Block a user