summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorgrothedev <grothedev@gmail.com>2025-07-06 02:55:11 -0400
committergrothedev <grothedev@gmail.com>2025-07-06 02:55:11 -0400
commit8ec485b4d6dafc43c9487dbfb05c8c32c7d776c2 (patch)
tree06bf3b7ffc4430e8388e7168cf9c638e9077a38a /public
parent9325b6426054edc420f0fef44d97b3e0250e3395 (diff)
update
Diffstat (limited to 'public')
-rw-r--r--public/js/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/main.js b/public/js/main.js
index 4aa463e..e22ad35 100644
--- a/public/js/main.js
+++ b/public/js/main.js
@@ -277,7 +277,7 @@ function connectWebSocket(){
}
} catch (error) {
console.error('Error parsing message:', error);
- socket.send('Error: Invalid message format');
+ socket.send(JSON.stringify({ error: 'Invalid message format' }));
return;
}
}