websocket fix

This commit is contained in:
2025-10-24 20:10:40 +02:00
parent 731fd56768
commit 4e08d81bb0
5 changed files with 28 additions and 28 deletions

View File

@@ -161,11 +161,10 @@ class WebSocketClient {
/**
* Send message to server
*/
send(type, data = {}) {
send(action, data = {}) {
const message = JSON.stringify({
type,
data,
timestamp: new Date().toISOString()
action,
data
});
if (this.isConnected && this.ws.readyState === WebSocket.OPEN) {