Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
nzlysenko
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();
})();
 
Labels (1)
1 Solution

Accepted Solutions
ErikWetterberg
Master
Master

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
ErikWetterberg
Master
Master

Hi,

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

nzlysenko
Contributor II
Contributor II
Author

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.