diff --git a/nodejs/sender-monitor/main.js b/nodejs/sender-monitor/main.js index fa64726..9172db1 100644 --- a/nodejs/sender-monitor/main.js +++ b/nodejs/sender-monitor/main.js @@ -111,10 +111,7 @@ async function captureAndProcessScreen() { function processAndSendText(text) { if (text && text !== lastText && isConnected && webrtc.isChannelOpen()) { - webrtc.sendMessage(JSON.stringify({ - type: "MESSAGE", - content: text, - })); + webrtc.sendMessage(text); lastText = text; console.log(`Text sent to display: ${text}`); }