Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

nitaykuris
New Contributor

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?

3 Replies
erik_wetterberg
Honored Contributor

Re: web socket connection between website and qliksense

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

Erik Wetterberg
https://extendingqlik.upper88.com/
nitaykuris
New Contributor

Re: web socket connection between website and qliksense

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

what port number should i choose?

Not applicable

Re: web socket connection between website and qliksense

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

Community Browser