i did the thingy ride my dick now

This commit is contained in:
i-am-called-glitchy 2025-06-06 20:36:23 +00:00
parent c3a1ce74af
commit 2ad548e0b3
3 changed files with 31 additions and 3 deletions

View file

@ -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";
}
});