pass data through
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user