qlik-oss / enigma.js

JavaScript library for consuming Qlik's Associative Engine.
MIT License
210 stars 82 forks source link

socket timeout when connect qlik using enigma (less network bandwidth) #793

Closed hshahul closed 3 years ago

hshahul commented 4 years ago

Hi Team,

I am using enigma js for getting data from Qlik sense, its working fine most of the time but sometimes i am getting socket closed error in less network bandwidth ( i guess) . Other things are working fine without any issue in less bandwidth.

Can you please help me to resolve the issue with slow network connectivity. ( I am facing this issue every 2 days in weekly)

hshahul commented 4 years ago

oh sorry, wrongly pressed submit button two times. can you please give me the solutions on this #794 issue

axelssonHakan commented 4 years ago

If you are connecting over a less stable connection the WS could be disconnected. In that case, there will be an event triggered => session.closed (https://github.com/qlik-oss/enigma.js/blob/master/examples/basics/events/session.js) and you can reconnect using the same URL if it´s configured with a TTL > 0 (time before the session is discarded in the Qlik engine)

axelssonHakan commented 3 years ago

@hshahul any update on this issue? were you able to solve the issue with the information provided above?

axelssonHakan commented 3 years ago

Closed due to inactivity