# WebSocket protocol supported by Dynatrace

**URL:** <https://community.dynatrace.com/t/websocket-protocol-supported-by-dynatrace/6007>\
**Category:** Real User Monitoring\
**Tags:** mobile-monitoring\
**Created:** [May 1, 2017, 3:16pm UTC](https://community.dynatrace.com/t/websocket-protocol-supported-by-dynatrace/6007 "2017-05-01T15:16:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander\_zagor](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@alexander\_zagor](https://community.dynatrace.com/u/alexander_zagor)\
**Post date:** [May 1, 2017, 3:16pm UTC](https://community.dynatrace.com/t/websocket-protocol-supported-by-dynatrace/6007/1 "2017-05-01T15:16:44Z")

</div>

Hi,

our back-end Java app communicates with the clients (mobile apps on iOS and Android) over WebSocket protocol.

Would it be possible to get both PurePath and UEM in this case?

Or using ADK for instrumentation is the only way to go?

Thanks!

---

<div class="post-metadata">

**Author:** ![dpunz](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@dpunz](https://community.dynatrace.com/u/dpunz)\
**Post date:** [May 2, 2017, 7:33am UTC](https://community.dynatrace.com/t/websocket-protocol-supported-by-dynatrace/6007/2 "2017-05-02T07:33:17Z")

</div>

Hi Alex,

currently websockets are not supported by our mobile agents. You can however manually measure the timings.

Would you mind sharing which rameworks you are using for Android and iOS?

Best regards,

Dominik

---

<div class="post-metadata">

**Author:** ![Ardhi](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@Ardhi](https://community.dynatrace.com/u/Ardhi)\
**Post date:** [April 3, 2023, 8:40am UTC](https://community.dynatrace.com/t/websocket-protocol-supported-by-dynatrace/6007/3 "2023-04-03T08:40:34Z")

</div>

Hi, could you elaborate more on how we can measure timings for websocket?

let say our framework is Android, is that all to monitor in websocket? (timings)

thanks

---

<div class="post-metadata">

**Author:** ![RSarafaniuk](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rsarafaniuk/32/14727_2.png) [@RSarafaniuk](https://community.dynatrace.com/u/RSarafaniuk)\
**Post date:** [May 28, 2024, 12:55pm UTC](https://community.dynatrace.com/t/websocket-protocol-supported-by-dynatrace/6007/4 "2024-05-28T12:55:29Z")

</div>

Hi, everybody!

Is there any news? And I’m interested in nodejs WebSocket connection, maybe something is comming?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [May 28, 2024, 7:17pm UTC](https://community.dynatrace.com/t/websocket-protocol-supported-by-dynatrace/6007/5 "2024-05-28T19:17:43Z")

</div>

In general websocket usage differs between various applications. Depending on your particular use case:

- if you are interested in tracing (server-side) - use [opentelemetry](https://docs.dynatrace.com/docs/shortlink/otel-walkthroughs)&nbsp;(preferred) or [OneAgent SDK](https://docs.dynatrace.com/docs/extend-dynatrace/extend-tracing/oneagent-sdk)&nbsp;(simple to use, deprecated in favor of opentelemetry)
- If you need to track websocket communication from the mobile / web / custom applications use the appropriate SDK (mobile/ custom) or the RUM JS API (web applications) and create either user action, or&nbsp; report requests or other data. This needs a design and understanding of your application and it depends on what you need to achieve.

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [July 8, 2024, 1:28pm UTC](https://community.dynatrace.com/t/websocket-protocol-supported-by-dynatrace/6007/6 "2024-07-08T13:28:48Z")

</div>

Currently the only option to report ws(s) is by manually instrumenting those request on mobile app side. This allows to report the clientside view of the request, but linking to service calls is currently not supported for non http(s) protocols:

> **[OneAgent SDK for iOS in RUM Classic](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/mobile-applications/instrument-ios-app/customization/oneagent-sdk-for-ios)**
>
> Enrich mobile user experience monitoring using OneAgent SDK for iOS.

> **[Instrumentation via OneAgent SDK for Android in RUM Classic](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/mobile-applications/instrument-android-app/instrumentation-via-oneagent-sdk/oneagent-sdk-for-android)**
>
> Learn how to enrich mobile user experience monitoring in Android using OneAgent SDK.
