Some things.

This commit is contained in:
2025-05-23 16:43:45 -04:00
parent 2856c03b46
commit 5282de29a3
2 changed files with 18 additions and 2 deletions

View File

@@ -12,7 +12,14 @@ ws.onmessage = (event) => {
function sendMessage() {
const text = input.value;
if (text.trim()) {
ws.send(text);
ws.send(
JSON.stringify({
type: "send",
data: {
content: text,
},
}),
);
input.value = "";
}
}