<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Migrating from Capabilities API to qlik-embed in Angular 19 Mashup – WebSocket Management Concerns in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Migrating-from-Capabilities-API-to-qlik-embed-in-Angular-19/m-p/2517116#M22187</link>
    <description>&lt;P class=""&gt;Hi everyone,&lt;/P&gt;&lt;P class=""&gt;I'm currently developing a mashup using &lt;STRONG&gt;Angular 19 and Qlik Sense&lt;/STRONG&gt;, and I'm considering whether it's worth migrating from the &lt;STRONG&gt;Capabilities API&lt;/STRONG&gt; to the newer &lt;STRONG&gt;qlik-embed&lt;/STRONG&gt; approach.&lt;/P&gt;&lt;P class=""&gt;While qlik-embed seems more modern and better aligned with Angular's component-based architecture, there are still a few unclear aspects—particularly around &lt;STRONG&gt;WebSocket management and error handling&lt;/STRONG&gt;.&lt;/P&gt;&lt;P class=""&gt;With the Capabilities API:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;I can manually manage WebSocket connections (e.g., close them when switching between apps).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;I can also intercept server-side errors sent over WebSocket and handle them in the frontend.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;My questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;How does qlik-embed manage WebSocket connections&lt;/STRONG&gt; when switching between apps? Are connections to previously opened apps automatically closed or do they persist?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Is there any mechanism for intercepting and handling WebSocket-level errors&lt;/STRONG&gt; (like server timeouts or invalid objects) when using qlik-embed, similar to what the Capabilities API allows?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;I'd appreciate any insights or official guidance on how these scenarios are handled with qlik-embed. Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 08 May 2025 10:52:05 GMT</pubDate>
    <dc:creator>amj</dc:creator>
    <dc:date>2025-05-08T10:52:05Z</dc:date>
    <item>
      <title>Migrating from Capabilities API to qlik-embed in Angular 19 Mashup – WebSocket Management Concerns</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Migrating-from-Capabilities-API-to-qlik-embed-in-Angular-19/m-p/2517116#M22187</link>
      <description>&lt;P class=""&gt;Hi everyone,&lt;/P&gt;&lt;P class=""&gt;I'm currently developing a mashup using &lt;STRONG&gt;Angular 19 and Qlik Sense&lt;/STRONG&gt;, and I'm considering whether it's worth migrating from the &lt;STRONG&gt;Capabilities API&lt;/STRONG&gt; to the newer &lt;STRONG&gt;qlik-embed&lt;/STRONG&gt; approach.&lt;/P&gt;&lt;P class=""&gt;While qlik-embed seems more modern and better aligned with Angular's component-based architecture, there are still a few unclear aspects—particularly around &lt;STRONG&gt;WebSocket management and error handling&lt;/STRONG&gt;.&lt;/P&gt;&lt;P class=""&gt;With the Capabilities API:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;I can manually manage WebSocket connections (e.g., close them when switching between apps).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;I can also intercept server-side errors sent over WebSocket and handle them in the frontend.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;My questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;How does qlik-embed manage WebSocket connections&lt;/STRONG&gt; when switching between apps? Are connections to previously opened apps automatically closed or do they persist?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Is there any mechanism for intercepting and handling WebSocket-level errors&lt;/STRONG&gt; (like server timeouts or invalid objects) when using qlik-embed, similar to what the Capabilities API allows?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;I'd appreciate any insights or official guidance on how these scenarios are handled with qlik-embed. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 10:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Migrating-from-Capabilities-API-to-qlik-embed-in-Angular-19/m-p/2517116#M22187</guid>
      <dc:creator>amj</dc:creator>
      <dc:date>2025-05-08T10:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating from Capabilities API to qlik-embed in Angular 19 Mashup – WebSocket Management Con...</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Migrating-from-Capabilities-API-to-qlik-embed-in-Angular-19/m-p/2517974#M22199</link>
      <description>&lt;P&gt;Hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/245721"&gt;@amj&lt;/a&gt;&lt;/SPAN&gt; ,qlik-embed is responsible for render visualizations, and of course, all the apps connected to the visualizations rendered. When qlik-embed component unmounts from the page it will handle all "closing" itself about visualizations.&lt;/P&gt;
&lt;P&gt;For managing websockets you should use &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/229862"&gt;@qlik&lt;/a&gt;/api or enigma.js, with that you can also intercelt websocket errors and other events.&lt;/P&gt;
&lt;P&gt;Using both qlik-embed and &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/229862"&gt;@qlik&lt;/a&gt;/api is the reccommend approach. Per our docs "@qlik/api/qix will re-use existing WebSocket sessions if they are found. It also integrates seamlessly with &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/229862"&gt;@qlik&lt;/a&gt;/embed libraries and will hook into any WebSocket session already opened by any &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/229862"&gt;@qlik&lt;/a&gt;/embed library".&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 15:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Migrating-from-Capabilities-API-to-qlik-embed-in-Angular-19/m-p/2517974#M22199</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2025-05-15T15:47:07Z</dc:date>
    </item>
  </channel>
</rss>

