From 0a70283df0c00041310e99bd52bd4f35510e1dd7 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Fri, 2 Jun 2023 11:52:49 +0200 Subject: [PATCH] log status data --- api/views/index.ejs | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) 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() {