websocket fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user