<?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 Re: Can we use web sockets in custom visual? in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-use-web-sockets-in-custom-visual/m-p/4885451#M12936</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="797164" data-lia-user-login="swamisharma" class="lia-mention lia-mention-user"&gt;swamisharma&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif" size="4" color="#FF6600"&gt;&lt;STRONG&gt;The issue&lt;/STRONG&gt; &lt;/FONT&gt;here is Power BI&lt;STRONG&gt; custom visuals&lt;/STRONG&gt; run in a&lt;STRONG&gt; sandboxed environment&lt;/STRONG&gt; with &lt;STRONG&gt;strict CSP rules &lt;/STRONG&gt;and&amp;nbsp;Your WebSocket connection to &lt;A href="wss://echo.websocket.org/" target="_self"&gt;wss://echo.websocket.org/&lt;/A&gt; is being &lt;STRONG&gt;blocked&lt;/STRONG&gt; because:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The CSP directive only allows connections to specific domains Like (*.powerbi.com or&amp;nbsp;*.microsoft.com)&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;SPAN&gt;You might need to&amp;nbsp;Use a &lt;STRONG&gt;WebSocket service&lt;/STRONG&gt; hosted on&amp;nbsp;&lt;STRONG&gt;allowed domain &lt;/STRONG&gt;or&amp;nbsp;&lt;STRONG&gt;Proxy&lt;/STRONG&gt; through an &lt;STRONG&gt;allowed endpoint&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;AlsoThis approach uses a &lt;STRONG&gt;middle-tier service&lt;/STRONG&gt; to handle the &lt;STRONG&gt;WebSocket connection&lt;/STRONG&gt; which then pushes the data to Power BI:&lt;/P&gt;&lt;P class=""&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Also here is &lt;FONT face="comic sans ms,sans-serif" size="4" color="#FFCC00"&gt;&lt;STRONG&gt;Some Resources&lt;/STRONG&gt; &lt;/FONT&gt;to help you solve this issue (I recommend it):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/power-platform/admin/content-security-policy" target="_self"&gt;Content security policy (Power Platform)&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://stackoverflow.com/questions/77838666/how-can-i-connect-my-websocket-url-to-power-bi-to-visualize-live-data" target="_self"&gt;How can i connect my websocket url to power bi to visualize live data&lt;/A&gt;&amp;nbsp;&lt;STRONG&gt;(Check this)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;if this post helps, then I would appreciate a thumbs up&lt;/EM&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;and&amp;nbsp;&lt;STRONG&gt;mark it as the solution&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Nov 2025 12:52:35 GMT</pubDate>
    <dc:creator>Ahmed-Elfeel</dc:creator>
    <dc:date>2025-11-25T12:52:35Z</dc:date>
    <item>
      <title>Can we use web sockets in custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-use-web-sockets-in-custom-visual/m-p/4881996#M12927</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;I am working on adding Autodesk APS viewer in our custom visual!&lt;BR /&gt;Which I am able to complete, but we have an another requirement to use Web Sockets in custom visual&lt;BR /&gt;I tried to test If I can use the web sockets in custom visual, and unfortunately I was not able to do that&lt;BR /&gt;I tested this `&lt;SPAN&gt;Quick WebSocket Test with JavaScript` from&amp;nbsp;&lt;A href="https://websocket.org/tools/websocket-echo-server/" target="_blank"&gt;https://websocket.org/tools/websocket-echo-server/&lt;/A&gt;&lt;BR /&gt;and this was the result&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So, is there any way we can use web sockets in custom visual, I tried to explore the documentation but I didnt found anything, Thanks!!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 11:12:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-use-web-sockets-in-custom-visual/m-p/4881996#M12927</guid>
      <dc:creator>swamisharma</dc:creator>
      <dc:date>2025-11-21T11:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use web sockets in custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-use-web-sockets-in-custom-visual/m-p/4882346#M12928</link>
      <description>&lt;P&gt;Are you planning to get that visual certified at some point?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 16:01:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-use-web-sockets-in-custom-visual/m-p/4882346#M12928</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-11-21T16:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use web sockets in custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-use-web-sockets-in-custom-visual/m-p/4883246#M12930</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;, Our visual is already on App Store, but not certified as we are doing HTTP calls&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2025 15:57:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-use-web-sockets-in-custom-visual/m-p/4883246#M12930</guid>
      <dc:creator>swamisharma</dc:creator>
      <dc:date>2025-11-23T15:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use web sockets in custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-use-web-sockets-in-custom-visual/m-p/4885451#M12936</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="797164" data-lia-user-login="swamisharma" class="lia-mention lia-mention-user"&gt;swamisharma&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif" size="4" color="#FF6600"&gt;&lt;STRONG&gt;The issue&lt;/STRONG&gt; &lt;/FONT&gt;here is Power BI&lt;STRONG&gt; custom visuals&lt;/STRONG&gt; run in a&lt;STRONG&gt; sandboxed environment&lt;/STRONG&gt; with &lt;STRONG&gt;strict CSP rules &lt;/STRONG&gt;and&amp;nbsp;Your WebSocket connection to &lt;A href="wss://echo.websocket.org/" target="_self"&gt;wss://echo.websocket.org/&lt;/A&gt; is being &lt;STRONG&gt;blocked&lt;/STRONG&gt; because:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The CSP directive only allows connections to specific domains Like (*.powerbi.com or&amp;nbsp;*.microsoft.com)&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;SPAN&gt;You might need to&amp;nbsp;Use a &lt;STRONG&gt;WebSocket service&lt;/STRONG&gt; hosted on&amp;nbsp;&lt;STRONG&gt;allowed domain &lt;/STRONG&gt;or&amp;nbsp;&lt;STRONG&gt;Proxy&lt;/STRONG&gt; through an &lt;STRONG&gt;allowed endpoint&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;AlsoThis approach uses a &lt;STRONG&gt;middle-tier service&lt;/STRONG&gt; to handle the &lt;STRONG&gt;WebSocket connection&lt;/STRONG&gt; which then pushes the data to Power BI:&lt;/P&gt;&lt;P class=""&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Also here is &lt;FONT face="comic sans ms,sans-serif" size="4" color="#FFCC00"&gt;&lt;STRONG&gt;Some Resources&lt;/STRONG&gt; &lt;/FONT&gt;to help you solve this issue (I recommend it):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/power-platform/admin/content-security-policy" target="_self"&gt;Content security policy (Power Platform)&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://stackoverflow.com/questions/77838666/how-can-i-connect-my-websocket-url-to-power-bi-to-visualize-live-data" target="_self"&gt;How can i connect my websocket url to power bi to visualize live data&lt;/A&gt;&amp;nbsp;&lt;STRONG&gt;(Check this)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;if this post helps, then I would appreciate a thumbs up&lt;/EM&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;and&amp;nbsp;&lt;STRONG&gt;mark it as the solution&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Nov 2025 12:52:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-use-web-sockets-in-custom-visual/m-p/4885451#M12936</guid>
      <dc:creator>Ahmed-Elfeel</dc:creator>
      <dc:date>2025-11-25T12:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use web sockets in custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-use-web-sockets-in-custom-visual/m-p/4886259#M12941</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="838901" data-lia-user-login="Ahmed-Elfeel" class="lia-mention lia-mention-user"&gt;Ahmed-Elfeel&lt;/a&gt;&amp;nbsp;, Thanks for the references and insights&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 07:15:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-use-web-sockets-in-custom-visual/m-p/4886259#M12941</guid>
      <dc:creator>swamisharma</dc:creator>
      <dc:date>2025-11-26T07:15:34Z</dc:date>
    </item>
  </channel>
</rss>

