Skip to content

Commit

Permalink
just send text in sendMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
willwade committed Oct 31, 2024
1 parent 593d894 commit 1cf6d9e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nodejs/sender-monitor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
Expand Down

0 comments on commit 1cf6d9e

Please sign in to comment.