Qlik Community

Ask a Question

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Qlik Highlights 2020 Giveaway! Watch, reply and have a chance to win a $200 Amazon Gift Card! Watch Video
cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor II
Contributor II

Multiple session apps in the same user session

Hi everyone. I try to create two session apps using engine api in one user session but it doesn't work. The engine answers with the message:  "error: { code: 1002, parameter: '', message: 'App already open' } }". We use Qlik Sense Server February 2019 release. Code sample:

(async ()=>{
const qix = await session.open();
await qix.createSessionAppFromApp({'qSrcAppId':'5f0eba2b-1fcf-46c9-8a9c-b4b6c0304de4'});
await qix.createSessionAppFromApp({'qSrcAppId':'378108df-7212-493e-ac6d-9ba63935de45'});
await session.close();
})();
 
1 Solution

Accepted Solutions

Hi,

that’s not possible. QIX only allows one app for a web socket, so you have to open two web sockets.

View solution in original post

2 Replies

Hi,

that’s not possible. QIX only allows one app for a web socket, so you have to open two web sockets.

View solution in original post

Contributor II
Contributor II

Thank you! I changed code for multiple websockets adding unique id in the url like `wss://${host}:4747/app/${uniqueId}` and now it all works.