diff options
| author | grothedev <grothedev@gmail.com> | 2025-07-06 02:55:11 -0400 |
|---|---|---|
| committer | grothedev <grothedev@gmail.com> | 2025-07-06 02:55:11 -0400 |
| commit | 8ec485b4d6dafc43c9487dbfb05c8c32c7d776c2 (patch) | |
| tree | 06bf3b7ffc4430e8388e7168cf9c638e9077a38a | |
| parent | 9325b6426054edc420f0fef44d97b3e0250e3395 (diff) | |
update
| -rw-r--r-- | public/js/main.js | 2 |
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; } } |
