Refactoring code

This commit is contained in:
Leonid Kaganov
2025-08-19 13:41:22 +03:00
parent dc68a27f5f
commit df44eab1e3
9 changed files with 844 additions and 710 deletions
+2
View File
@@ -99,6 +99,7 @@
// let ws = new WebSocket(`ws://localhost:8095/ws`);
ws.onopen = () => {
output.textContent = "✅ WebSocket connected.";
};
@@ -122,6 +123,7 @@
} catch (e) {
output.textContent += "\n\n⚠️ Invalid JSON:\n" + e.message;
}
}
function place(event) { textarea.value = (event || window.event).target.getAttribute("data"); sendMessage(); }