Spaces:
Build error
Build error
prev chunk
Browse files- display/index.html +2 -1
display/index.html
CHANGED
@@ -14,7 +14,8 @@
|
|
14 |
const eventSource = new EventSource('http://localhost:8343/test');
|
15 |
const allText = document.querySelector('.text');
|
16 |
const nextText = document.querySelector('.next-text');
|
17 |
-
|
|
|
18 |
const message = e.data;
|
19 |
nextText.innerHTML = message;
|
20 |
|
|
|
14 |
const eventSource = new EventSource('http://localhost:8343/test');
|
15 |
const allText = document.querySelector('.text');
|
16 |
const nextText = document.querySelector('.next-text');
|
17 |
+
|
18 |
+
eventSource.onmessage = (e) => {
|
19 |
const message = e.data;
|
20 |
nextText.innerHTML = message;
|
21 |
|