[X2Go-Dev] X2Go HTML plugin

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Mon Jun 21 17:13:42 CEST 2021


Hi Alex,

On  Mi 21 Apr 2021 22:43:53 CEST, Oleksandr Shneyder wrote:

> https://wiki.x2go.org/doku.php/wiki:advanced:x2gohtmlclient

I am currently trying to provide an out-of-the-box DEB installation of  
x2gohtmlclient. For this, I need to make some adjustments, mainly  
these are about wss: traffic becoming optional and defaulting  
everything to localhost with ws: protocol. Of course, in real world  
deployments, this needs to SSL'ified again. But I'd really love to  
provide DEBs that demo x2gohtmlclient out-of-the-box (and SSL  
certificates are not so much things that come out of the box).

This all seems to work fine, only that I get a failure when  
x2goclient.min.js starts communicating with the x2gokdrive Xserver  
(via x2gowswrapper, via websockify).

I think that my seen bug is caused by my websockify 0.9 which has the  
text data mode removed (compared to earlier versions). See:
https://github.com/novnc/websockify/issues/365#issuecomment-432270758

As I am testing everything on Debian 11, I indeed have websockify 0.9  
installed. Where did you test the whole stack of x2gohtmlclient,  
x2goclient.min.js, x2gowebrpc and x2gowswrapper on? Debian 10, maybe?

My symptom in the browser is:

   - Logon works
   - X2Go KDrive sessions starts in the background (processes come up,
     desktop is resumable via native X2Go Client later on)
   - X2Go Logo appears in the placeholder area in the webbrowser
   - X2Go session strings is shown at the top of the session
     window in the browser
   - and then, the session is immediately closed again.

The (error) message(s) I get in the browser console while this happens  
are/is these/this:

```
WS Open Event {isTrusted: true, type: "open", target: WebSocket,  
currentTarget: WebSocket, eventPhase: 2, …}

x2goclient.min.js:208 Sending geometry event: ArrayBuffer(41)  
Uint32Array(5) [7, 60294400, 0, 0, 0] Uint16Array(5) [7, 0, 1280, 920,  
0]

x2goclient.min.js:204 Sending client Version and OS:  
ArrayBuffer(41)byteLength: (...)__proto__: ArrayBuffer[[Int8Array]]:  
Int8Array(41)[[Uint8Array]]: Uint8Array(41)[[ArrayBufferByteLength]]:  
41[[ArrayBufferData]]: "0x0fc800a0c030" Uint32Array(5) [10, 196612, 0,  
0, 0]0: 101: 1966122: 03: 04: 0buffer: (...)byteLength:  
(...)byteOffset: (...)length: (...)Symbol(Symbol.toStringTag):  
(...)__proto__: TypedArray Uint16Array(5) [10, 0, 4, 3, 0]0: 101: 02:  
43: 34: 0buffer: (...)byteLength: (...)byteOffset: (...)length:  
(...)Symbol(Symbol.toStringTag): (...)__proto__: TypedArray

x2goclient.min.js:265 WS Close CloseEvent {isTrusted: true, wasClean:  
true, code: 1003, reason: "Unsupported: Text frames are not  
supported", type: "close", …}
```

Before I dig any deeper, could you try your test setups with  
websockify 0.9 and report back if you see a similar error popping up  
or not?

Thanks,
Mike
-- 

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: Digitale PGP-Signatur
URL: <https://lists.x2go.org/pipermail/x2go-dev/attachments/20210621/dd85a7ab/attachment.sig>


More information about the x2go-dev mailing list