4 Replies Latest reply: Aug 3, 2016 5:06 AM by Marvin Mindanao RSS

    Qsocks extension (Qlik Sense)

    Marvin Mindanao

      Hi, can anybody have an idea on how to make Qsocks extension of qliksense work on a HTML file.. it allways says failed: Error during WebSocket handshake: Unexpected response code: 403

      kidly see below code.

       

      <!DOCTYPE html>

       

      <script src="https://rawgit.com/mindspank/qsocks/master/qsocks.bundle.js"></script>

      <script>

       

        var config = {

        host: 'sense-demo.qlik.com',

        isSecure: true

        };

       

        //Connect to a server using the config object.

        //Connecting without a config object automatically assumes a instance of Qlik Sense Desktop

       

        //When connected we are returned with a handle that represents the Global class.

        qsocks.Connect(config).then(function(global) {

       

        //We can now interact with the global class, for example fetch the document list.

        //qsocks mimics the Engine API, refer to the Engine API documentation for available methods.

        global.getDocList().then(function(docList) {

       

        docList.forEach(function(doc) {

        console.log(doc)

        });

       

        });

       

        });

       

      </script>

       

      <body>

      </body>