Skip to content

Commit

Permalink
Websocket Sending Message Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tafseerhussain committed Dec 19, 2024
1 parent 5aaa381 commit e66f5ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions studio/src/services/webSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit e66f5ec

Please sign in to comment.