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