Merge API branch into main #12

Merged
SemvdH merged 334 commits from api into main 2023-06-13 19:54:43 +00:00
Showing only changes of commit 294e45b9b7 - Show all commits

View File

@@ -62,6 +62,11 @@
assign_button_callbacks();
window.onload = function () {
const events = new EventSource("/events");
events.onopen = () => {
console.log("OPENED EVENT");
}
events.onmessage = (event) => {
const parsedData = JSON.parse(event.data);
console.log("RECEIVED EVENT");