Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
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)
0 Replies