# AppEngine - WebSocket

**URL:** <https://community.dynatrace.com/t/appengine-websocket/43749>\
**Category:** Developer Q&A Forum\
**Tags:** custom-app\
**Created:** [January 22, 2024, 3:44pm UTC](https://community.dynatrace.com/t/appengine-websocket/43749 "2024-01-22T15:44:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabbrus](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@fabbrus](https://community.dynatrace.com/u/fabbrus)\
**Post date:** [January 22, 2024, 3:44pm UTC](https://community.dynatrace.com/t/appengine-websocket/43749/1 "2024-01-22T15:44:10Z")

</div>

Hello,

I was interested in the ability to integrate chat functionality in an App built with AppEngine; is it possible to use websockets?

E.g. I would do something like this:

import io from ‘socket.io-client’;const socket = io(‘[my-socket-io-server.com](http://my-socket-io-server.com)’);  
export const App = () =\> { /\* do something \*/ }

Thanks for the support.

---

<div class="post-metadata">

**Author:** ![SarahFaustmann](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@SarahFaustmann](https://community.dynatrace.com/u/SarahFaustmann)\
**Post date:** [January 23, 2024, 10:32am UTC](https://community.dynatrace.com/t/appengine-websocket/43749/2 "2024-01-23T10:32:15Z")

</div>

Hi&nbsp;[@fabbrus](https://community.dynatrace.com/user/70747),

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 [app function](https://developer.dynatrace.com/develop/functions/), which will allow you access to external resources.

Kind regards,

Sarah

---

<div class="post-metadata">

**Author:** ![fabbrus](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@fabbrus](https://community.dynatrace.com/u/fabbrus)\
**Post date:** [January 23, 2024, 10:59am UTC](https://community.dynatrace.com/t/appengine-websocket/43749/3 "2024-01-23T10:59:30Z")

</div>

Hi&nbsp;[@SarahFaustmann](https://community.dynatrace.com/user/67610)&nbsp;,

Thanks for your kind answer.

Based on your reply, then I don’t think it is possible to use websockets, since for the chat a websocket needs to stay&nbsp; open for as long as the user interacts with the app; but in [app functions](https://developer.dynatrace.com/develop/functions/) there is this [requirement](https://developer.dynatrace.com/develop/functions/#runtime-limitations):

> ## Runtime limitations[​](https://developer.dynatrace.com/develop/functions#runtime-limitations)
> 
> Currently, the following restrictions apply to functions:
> 
> - Function execution times out after 120 seconds.

So, the websocket would stop working after that time.

I’ll wait for your feedback, though.

Best regards,&nbsp;  
Simone

---

<div class="post-metadata">

**Author:** ![SarahFaustmann](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@SarahFaustmann](https://community.dynatrace.com/u/SarahFaustmann)\
**Post date:** [January 23, 2024, 12:15pm UTC](https://community.dynatrace.com/t/appengine-websocket/43749/4 "2024-01-23T12:15:42Z")

</div>

Hi&nbsp;[@fabbrus](https://community.dynatrace.com/user/70747),

I’ve checked with an internal team. Unfortunately for your case,&nbsp;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.&nbsp;😉

Kind regards,

Sarah
