i did the thingy ride my dick now
This commit is contained in:
parent
c3a1ce74af
commit
2ad548e0b3
3 changed files with 31 additions and 3 deletions
|
|
@ -79,3 +79,15 @@ textarea.addEventListener("input", () => {
|
|||
}
|
||||
}, 500);
|
||||
});
|
||||
|
||||
|
||||
const socket = io();
|
||||
|
||||
// Listen for updates
|
||||
socket.on('board_update', data => {
|
||||
if (true && data.content !== last) {
|
||||
textarea.value = data.content;
|
||||
last = data.content;
|
||||
status.textContent = "Updated from server";
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue