add connecting to websocket on client side

This commit is contained in:
Sem van der Hoeven
2023-06-02 11:19:52 +02:00
parent 5031dd9aa8
commit baa0f0c35f
2 changed files with 50 additions and 14 deletions

View File

@@ -85,8 +85,8 @@ var connect_to_api = function () {
console.log("got image");
}
} catch (error) {
// console.log("could not parse as json, must be bytes");
send_image_data_to_clients(message);
console.log("could not parse as json");
// send_image_data_to_clients(message);
}
});