I have an application that uses WebSockets to display a remote VM (that
streams over xrdp).  Even though the guacd server connects completely to
the xrdp server, Chrome only displays a cursor over a black screen.

Only when you hover over something or press a key down and receive a
changed state, does chrome show the screen. I have validated this by
manually sending key states and mouse states when the connection is made.
Example:

guac.onstatechange = (state) => {
if (state == 3) {
setTimeout(() => {
// @ts-ignore
guac.sendMouseState({
"x": 9,
"y": 9,
"left": false,
"middle": false,
"right": false,
"up": false,
"down": false
})
guac.sendKeyEvent(1, 97);
guac.sendKeyEvent(1, 65288);
dispatchClickEvent(divWithCanvas, 0)
}, 1000)
}
And this will make the screen load because the coordinates x=9 and y = 9
has something hoverable.

I am looking for a permanent fix to this. Can someone help?

-- 
*Pierre*
*Phone: (341)-204-7713*

*Email: [email protected] <[email protected]>*

Reply via email to