New to Qlik Analytics

If you’re new to Qlik Cloud or Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.

Who Me Too'd this topic

AnnaRodriguez
Partner - Contributor III
Partner - Contributor III

React, Enigma and QS Enterprise

Hello, I am trying to build a simple react app that can read application list in QS server available to user.  I have tweaked code in some examples build off QS Desktop to use QS Enterprise, but nothing seems to be working right.

 

Does anyone have any sample codes they have used to build such connection in react using enigma? Note that in my case, the user must be authenticated prior to getting a list of apps available.  Even though we have created virtual proxy with Windows form authentication., the react app does not display login screen. We tried with redirect, but this results in either displaying hub after successful login (react app is no longer active) or IE error 500. We have following code that results in CreateEnigmaError. 

import enigma from 'enigma.js';
const schema = require("enigma.js/schemas/12.20.0.json")

const session = enigma.create({
    schema,
    url: 'wss:<hostname>/<virtualproxy>/app/engineData',
    createSocket: url => new WebSocket(url),
});


export default session.open().then(global =>{
    return global
});

export default session.open().then(global =>{
    return global
});

 

Labels (3)
Who Me Too'd this topic