diff --git a/api/views/index.ejs b/api/views/index.ejs index 1c001531..301a9a03 100644 --- a/api/views/index.ejs +++ b/api/views/index.ejs @@ -82,21 +82,9 @@ console.log("OPENED EVENT"); } - // events.onmessage = (event) => { - // // console.log("MESSAGE RECEIVED"); - // const eventData = JSON.parse(event.data); - - // // Check if the event contains image data - // if (eventData.image) { - // const base64Data = eventData.image; - - // // Get the element - // const imgElement = document.getElementById('result-video'); - - // // Decode the base64 image and set it as the source of the element - // decodeBase64Image(base64Data, imgElement); - // } - // } + events.onmessage = (event) => { + console.log("Got data:" + event.data); + } }; function assign_button_callbacks() {