From 36a262dcb597a84cc7469a45ea6fe725cf19eb8e Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Sat, 3 Jun 2023 14:22:15 +0200 Subject: [PATCH] open socket on load --- api/views/index.ejs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/views/index.ejs b/api/views/index.ejs index 0e5ca9e8..3af85f9c 100644 --- a/api/views/index.ejs +++ b/api/views/index.ejs @@ -9,12 +9,12 @@ 5G drone API - +

5G Drone API

Camera view:

- +

Connected: <%- api_connected %>

@@ -114,6 +114,8 @@ console.error(error); } } + + openSocket(); }; function assign_button_callbacks() { @@ -262,6 +264,7 @@ document.getElementById("connectedlabel").innerHTML = "Connected: true"; document.getElementById("connectbutton").disabled = true; // connect_to_video_stream(); + } } else { console.log("error");