Skip to content

Instantly share code, notes, and snippets.

@mindspank
Last active December 21, 2016 13:26
Show Gist options
  • Save mindspank/9dff6d79ae626d7a6239b889096341a9 to your computer and use it in GitHub Desktop.
Save mindspank/9dff6d79ae626d7a6239b889096341a9 to your computer and use it in GitHub Desktop.
Connect to Qlik Sense Desktop using enigma.js
const enigma = require('enigma.js');
const qixSchema = require('../node_modules/enigma.js/schemas/qix/3.1/schema.json');
const WebSocket = require('ws');
const config = {
schema: qixSchema,
session: {
unsecure: true,
port: 4848
},
createSocket: (url) => {
console.log(url)
return new WebSocket(url)
}
};
enigma.getService('qix', config).then(qix => {
const global = qix.global;
const app = qix.app;
})
.catch(err => console.log(err))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment