Commit 06/08/2025
This commit is contained in:
@@ -79,7 +79,7 @@ $(document).ready(function() {
|
||||
|
||||
function sendCommand(cmd) {
|
||||
if (ws.readyState === WebSocket.OPEN) {
|
||||
ws.send(cmd);
|
||||
ws.send(JSON.stringify(cmd));
|
||||
} else {
|
||||
console.error('WebSocket is not open. Unable to send command:', JSON.stringify(cmd));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user