Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
AnnaRodriguez
Partner - Contributor II
Partner - Contributor II

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)
0 Replies