Skip to content

Unable to Send Data from xterm Console to LXD WebSocket #5332

Closed Answered by jerch
irtaza9 asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm, your code looks like a control flow nightmare to me, so it is somewhat hard to comprehend. When you focus the terminal widget and try typing something, does your console.log("Ws", dataWs); in the onData handler output anything at all?

If not - the problem lies within the frontend code. Might be a race condition, when things get attached/assigned and the execution order. I see you have many someVar?. constructs there, could be, that someVar never turns to true due to issues in the setup execution. In that case - check every of those maybe vars.

If yes - the problem lies on the server part. Check whether the server can correctly read data from the websocket. To debug that, simply place…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by irtaza9
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5331 on April 27, 2025 15:02.