Code Monkey home page Code Monkey logo

Comments (10)

axelssonHakan avatar axelssonHakan commented on September 10, 2024

Could you please provide some more information.

Any code example? Any more logging?

from enigma.js.

hshahul avatar hshahul commented on September 10, 2024

No logs, i am getting socket close error only. I am using our sample qlik connect code only.

const enigma = require('enigma.js');
const WebSocket = require('ws');
const schema = require('enigma.js/schemas/12.170.2.json');

// create a new session:
const session = enigma.create({
schema,
url: 'ws://localhost:9076/app/engineData',
createSocket: url => new WebSocket(url),
});

Error:
code: -1
message: "Socket closed"
proto: Object

but I am able to get connect and data from Qlik in edge browser,

Previously it is working in chrome browser, now only facing the issue ..........( no code change)

from enigma.js.

axelssonHakan avatar axelssonHakan commented on September 10, 2024

What is different between this issue and #800 ???

If you are using web browsers is usually best to use the WebSocket API that's included in the browser (don't require ws)
How do you transpile your code?

from enigma.js.

hshahul avatar hshahul commented on September 10, 2024

both are same issue only.

I tried wss / ws also, but not working fine. can you please websocket API sample code.

from enigma.js.

axelssonHakan avatar axelssonHakan commented on September 10, 2024

Are you using Qlik Sense Desktop?

from enigma.js.

axelssonHakan avatar axelssonHakan commented on September 10, 2024

both are same issue only.

I tried wss / ws also, but not working fine. can you please websocket API sample code.

see #800

from enigma.js.

axelssonHakan avatar axelssonHakan commented on September 10, 2024

Duplicate of #800

from enigma.js.

hshahul avatar hshahul commented on September 10, 2024

I am using Qlik web only

from enigma.js.

axelssonHakan avatar axelssonHakan commented on September 10, 2024

In your code you are trying to connect to localhost:9076
url: 'ws://localhost:9076/app/engineData',

You need to use the URL for the web deployment and also configure web-integration
https://github.com/qlik-oss/web-integration-examples

from enigma.js.

hshahul avatar hshahul commented on September 10, 2024

I am using web url api only, for sample,i gave the sample code. except localhost, everything same only. but no luck.

from enigma.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.