Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

web socket connection between website and qliksense

HI,

i have a running server with qlicksense. when i open it and use the devhub i can connect to engineapi and fetch the docs.

I would like to make the same action from another computer which hosts a simple html page. In order to do that i use qsocks.js

when i try to connect to the qlicsense server i get an error:

WebSocket connection to ... failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT

my JS looks like this

var configSense = {

          host: clikcsenseip,

          port:"4747",

          origin: 'https://iisip', // Pass a origin that has a corresponding record in the virtual proxy whitelist

          isSecure: true,

          rejectUnauthorized: false, // Don't reject self-signed certs,

          prefix:'/hub/my/work'

       

    };

   

    qsocks.Connect(configSense).then(global.....

Do I need another port?

Do I need to authenticate before i can connect to the server?

Does anyone have a working example for this scenario?

8 Replies
ErikWetterberg

Hi,

Prefix should be the virtual proxy name or '/' if you don't have one.

And yes you probably need to authenticate, a HTTP GET to the Qlik Sense server would probably work.

Hope this helps

Erik Wetterberg

Anonymous
Not applicable
Author

Is there any basic script that i can use for this purpose?

what port number should i choose?

Not applicable
Author

Hi Nitay, Im having the same issue. Did you find any solution? Thanks

steeramp
Partner - Creator II
Partner - Creator II

Hi Nitaykuris,

Have you found an solution about your issue ?? I have the same situation ... can you help me ?

iharsh220
Contributor III
Contributor III

hi,

try this if it work for you,

host: 'url', //host url
isSecure: true,
port: 443,
origin: 'http://localhost',
rejectUnauthorized: false,
headers: {
"Content-Type": "application/json"
}

steeramp
Partner - Creator II
Partner - Creator II

Hi Iharsh220,

Could you give me more detail...?  I'm not an expert about script and HTML   ...  My idea is to create an HTML page with a Button RELOAD APP  ...   How can I do that?

My host  is  http://185.XX.YYY.ZZ/sense/app/ZZZ83ebf-3aab-4cea-a76d-e6a3c2fcc228/

iharsh220
Contributor III
Contributor III

hello, 

even i dont have that much idea about that. 

just check this link if it will help. 

https://help.qlik.com/en-US/sense-developer/September2018/Subsystems/Mashups/Content/Sense_Mashups/C...

else you can use qlik mashup.

capability API

there is API called DoReload();

Thanks & regard

Harsh Gohil

steeramp
Partner - Creator II
Partner - Creator II

Thanks .. but i need more Help 😞