webRTC-prototype

This commit is contained in:
Daniel Hervás Rodao 2021-07-12 21:02:40 +02:00
parent f4aaf66fee
commit bb39ac743b
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ document.addEventListener('oncreateroom', function(){
console.log('[NOVNC] WebSocket streamws creado');
// Handler streamws
streamws.onmessage = function(e){
let message_data = JSON.parse(event.data);
let message_data = JSON.parse(e.data);
console.log('[NOVNC] streamws: ', message_data);
if(message_data['type'] == 'checkusers'){
if(message_data['users']){