Last active
December 21, 2016 13:26
-
-
Save mindspank/9dff6d79ae626d7a6239b889096341a9 to your computer and use it in GitHub Desktop.
Connect to Qlik Sense Desktop using enigma.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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