# WebSocket connection to 'wss://...' failed: Invalid frame header

**URL:** <https://community.f5.com/t/websocket-connection-to-wss-failed-invalid-frame-header/76557>\
**Category:** Technical Forums\
**Tags:** application-delivery\
**Created:** [September 19, 2025, 2:18pm UTC](https://community.f5.com/t/websocket-connection-to-wss-failed-invalid-frame-header/76557 "2025-09-19T14:18:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anzine321](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@Anzine321](https://community.f5.com/u/Anzine321)\
**Post date:** [September 19, 2025, 2:18pm UTC](https://community.f5.com/t/websocket-connection-to-wss-failed-invalid-frame-header/76557/1 "2025-09-19T14:18:57Z")

</div>

Hi

here is my configuration on vs

stream enable to fix web content mix http to https, asm enable, port vs 443 and pool 80

is that related wss invalid frame header ?

---

<div class="post-metadata">

**Author:** ![Jeff\_Granieri](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/jeff_granieri/32/8038_2.png) [@Jeff\_Granieri](https://community.f5.com/u/Jeff_Granieri)\
**Post date:** [September 19, 2025, 2:38pm UTC](https://community.f5.com/t/websocket-connection-to-wss-failed-invalid-frame-header/76557/2 "2025-09-19T14:38:44Z")

</div>

Hello,

Can you post TMOS version and any relevant&nbsp; ASM event logs when a WSS is made?&nbsp; &nbsp;Can you provide more details on your VS configuration as well?&nbsp; Quick search shows ASM/WAF&nbsp; in relation to WebSocket.. [The BIG-IP ASM system fails to detect WebSocket URLs](https://my.f5.com/manage/s/article/K92494571).&nbsp; &nbsp;Also you might want to review this other community article which might address this issue:[BIG-IP WAF Causes WSS Connections to Stall | DevCentral](https://community.f5.com/topic/317025)

---

<div class="post-metadata">

**Author:** ![Anzine321](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@Anzine321](https://community.f5.com/u/Anzine321)\
**Post date:** [September 22, 2025, 3:03am UTC](https://community.f5.com/t/websocket-connection-to-wss-failed-invalid-frame-header/76557/3 "2025-09-22T03:03:56Z")

</div>

Hello

os version 17.5.1 asm template rapid deployment and &nbsp; **Differentiate between HTTP/WS and HTTPS/WSS URLs is enable**

**config on vs**

**stream enable to replace http to https port vs https and pool http**

---

<div class="post-metadata">

**Author:** ![Jeff\_Granieri](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/jeff_granieri/32/8038_2.png) [@Jeff\_Granieri](https://community.f5.com/u/Jeff_Granieri)\
**Post date:** [September 22, 2025, 12:45pm UTC](https://community.f5.com/t/websocket-connection-to-wss-failed-invalid-frame-header/76557/4 "2025-09-22T12:45:03Z")

</div>

Do you have a websocket profile enabled on this VS?&nbsp; If not please add one and re-test

---

<div class="post-metadata">

**Author:** ![Anzine321](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@Anzine321](https://community.f5.com/u/Anzine321)\
**Post date:** [September 23, 2025, 4:20am UTC](https://community.f5.com/t/websocket-connection-to-wss-failed-invalid-frame-header/76557/5 "2025-09-23T04:20:30Z")

</div>

no websocket profile on virtual server

should i add to client and server too ? because when i applied on client error indicate that i have to add on server to ?

is that possible when pool member is htp (plaintext) o

---

<div class="post-metadata">

**Author:** ![Jeff\_Granieri](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/jeff_granieri/32/8038_2.png) [@Jeff\_Granieri](https://community.f5.com/u/Jeff_Granieri)\
**Post date:** [September 26, 2025, 7:17pm UTC](https://community.f5.com/t/websocket-connection-to-wss-failed-invalid-frame-header/76557/6 "2025-09-26T19:17:37Z")

</div>

Its worth a try.&nbsp; Are you able to post the actual error message ?

---

<div class="post-metadata">

**Author:** ![Juergen\_Mang](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/juergen_mang/32/12756_2.png) [@Juergen\_Mang](https://community.f5.com/u/Juergen_Mang)\
**Post date:** [September 29, 2025, 6:08am UTC](https://community.f5.com/t/websocket-connection-to-wss-failed-invalid-frame-header/76557/7 "2025-09-29T06:08:41Z")

</div>

It is usually a missing websocket profile.
