Closed OliverHenrichs closed 5 months ago
Ok, I found the solution.
It was to simply start the url with either http:// or https:// instead of ws:// or wss://.
The library code then replaces http with ws in function toValidWebsocketLocationUrl. So the following hostconfig works with QSDesktop:
{
host: "http://127.0.0.1",
authType: "none",
}
I guess I became confused because I migrated code that had used enigma.js. Therein, we always had to use the ws:// and wss:// prefixes when creating the Websockets for the Qlik sessions.
As a suggestion, one could improve toValidWebsocketLocationUrl to also handle the ws(s):// scheme.
Lastly, for some reason http://localhost
does not work.
Thank you for coming back and let us know about your solution.
It's a good suggestion! We will try to look into that.
Hi,
I am using openAppSession to successfully connect to QlikSense Server. Is it also possible to open a session to QlikSense Desktop (without ssl)?
Example Code:
I want .getDoc to not crash with
I tried prepending
ws://
to the host (the docs somewhere say that the url only defaults to https if no scheme is given), butwss://
was still prepended (resulting inwss://ws://
...).How should I configure the session? Is there an authType for Desktop? Is this even the right place?
Best regards Oliver