<?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 AppEngine - WebSocket in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/AppEngine-WebSocket/m-p/235113#M769</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was interested in the ability to integrate chat functionality in an App built with AppEngine; is it possible to use websockets?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E.g. I would do something like this:&lt;/P&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;io&lt;/SPAN&gt; &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;'socket.io-client'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;socket&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;io&lt;/SPAN&gt;&lt;SPAN&gt;('my-socket-io-server.com'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;export&lt;/SPAN&gt; &lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;App&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; () &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; { /* do something */ }&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks for the support.&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 23 Jan 2024 07:47:38 GMT</pubDate>
    <dc:creator>fabbrus</dc:creator>
    <dc:date>2024-01-23T07:47:38Z</dc:date>
    <item>
      <title>AppEngine - WebSocket</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/AppEngine-WebSocket/m-p/235113#M769</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was interested in the ability to integrate chat functionality in an App built with AppEngine; is it possible to use websockets?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E.g. I would do something like this:&lt;/P&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;io&lt;/SPAN&gt; &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;'socket.io-client'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;socket&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;io&lt;/SPAN&gt;&lt;SPAN&gt;('my-socket-io-server.com'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;export&lt;/SPAN&gt; &lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;App&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; () &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; { /* do something */ }&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks for the support.&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Jan 2024 07:47:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/AppEngine-WebSocket/m-p/235113#M769</guid>
      <dc:creator>fabbrus</dc:creator>
      <dc:date>2024-01-23T07:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: AppEngine - WebSocket</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/AppEngine-WebSocket/m-p/235212#M774</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/70747"&gt;@fabbrus&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for your question. I'm checking if it's possible to use the package you mentioned and will get back to you as soon as I can. If using the package is possible, you'll need to use it in an &lt;A href="https://developer.dynatrace.com/develop/functions/" target="_self"&gt;app function&lt;/A&gt;, which will allow you access to external resources.&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Sarah&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 10:34:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/AppEngine-WebSocket/m-p/235212#M774</guid>
      <dc:creator>SarahFaustmann</dc:creator>
      <dc:date>2024-01-23T10:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: AppEngine - WebSocket</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/AppEngine-WebSocket/m-p/235216#M776</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67610"&gt;@SarahFaustmann&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your kind answer.&lt;/P&gt;&lt;P&gt;Based on your reply, then I don't think it is possible to use websockets, since for the chat a websocket needs to stay&amp;nbsp; open for as long as the user interacts with the app; but in &lt;A href="https://developer.dynatrace.com/develop/functions/" target="_self"&gt;app functions&lt;/A&gt; there is this &lt;A href="https://developer.dynatrace.com/develop/functions/#runtime-limitations" target="_self"&gt;requirement&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;H2&gt;Runtime limitations&lt;A class="" title="Direct link to Runtime limitations" href="https://developer.dynatrace.com/develop/functions#runtime-limitations" target="_blank" rel="noopener"&gt;​&lt;/A&gt;&lt;/H2&gt;&lt;P&gt;Currently, the following restrictions apply to functions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Function execution times out after 120 seconds.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So, the websocket would stop working after that time.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'll wait for your feedback, though.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Best regards,&amp;nbsp;&lt;BR /&gt;Simone&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 10:59:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/AppEngine-WebSocket/m-p/235216#M776</guid>
      <dc:creator>fabbrus</dc:creator>
      <dc:date>2024-01-23T10:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: AppEngine - WebSocket</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/AppEngine-WebSocket/m-p/235226#M778</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/70747"&gt;@fabbrus&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I've checked with an internal team. Unfortunately for your case,&amp;nbsp;&lt;SPAN&gt;WebSockets are not supported for security reasons, and any third party module using them won't work properly. I hope this answer at least saves you some further inquiry.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sarah&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 12:15:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/AppEngine-WebSocket/m-p/235226#M778</guid>
      <dc:creator>SarahFaustmann</dc:creator>
      <dc:date>2024-01-23T12:15:42Z</dc:date>
    </item>
  </channel>
</rss>

