From e66f5ece2ccf6c50190e5f3bdb6bdad02b9786db Mon Sep 17 00:00:00 2001 From: Tafseer Hussain Date: Fri, 20 Dec 2024 02:19:01 +0530 Subject: [PATCH] Websocket Sending Message Fix --- studio/src/services/webSocket.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/studio/src/services/webSocket.js b/studio/src/services/webSocket.js index 7d1beca..6c070e8 100644 --- a/studio/src/services/webSocket.js +++ b/studio/src/services/webSocket.js @@ -35,10 +35,7 @@ const WebSocketService = { sendMessage(message, type) { if (this.ws && this.ws.readyState === WebSocket.OPEN) { - this.ws.send(JSON.stringify({ - query: message, - type - })); + this.ws.send(message); } else { console.error('WebSocket is not open'); }