# Websocket proxy issues

**URL:** <https://community.cloudflare.com/t/websocket-proxy-issues/796185>\
**Category:** DNS & Network\
**Tags:** dns, Review\
**Created:** [May 8, 2025, 6:44am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185 "2025-05-08T06:44:00Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pepega](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@Pepega](https://community.cloudflare.com/u/Pepega)\
**Post date:** [May 8, 2025, 6:44am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/1 "2025-05-08T06:44:00Z")

</div>

### What is the name of the domain?

[ws.worldofmiscrits.com](http://ws.worldofmiscrits.com)

### What is the issue you’re encountering

Websocket proxy randomly drops connection for some users

### What feature, service or problem is this related to?

I don’t know

### What are the steps to reproduce the issue?

Hello,  
We use the CF proxy to our game server which runs on websockets. Earlier, we connected directly through the IP address and had no issues but ever since I added CF proxy some players have random disconnections or aren’t even able to connect successfully. Is there any setting or configuration to fix this?  
I need to use CF for the DDoS protection.

Regards

---

<div class="post-metadata">

**Author:** ![WhiteDemonhia](https://sea2.discourse-cdn.com/cloudflare/user_avatar/community.cloudflare.com/whitedemonhia/32/145478_2.png) [@WhiteDemonhia](https://community.cloudflare.com/u/WhiteDemonhia)\
**Post date:** [May 8, 2025, 8:25am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/2 "2025-05-08T08:25:16Z")

</div>

**Hello!**

WebSockets connections are limited by plan. And if you have a robust plan like business, you also need to know:

> ## Technical note
> 
> When Cloudflare releases new code to its global network, we may restart servers, which terminates WebSockets connections.

> **[WebSockets](https://developers.cloudflare.com/network/websockets/#technical-note)**
>
> Cloudflare supports proxied WebSocket connections without additional configuration.

---

<div class="post-metadata">

**Author:** ![Pepega](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@Pepega](https://community.cloudflare.com/u/Pepega)\
**Post date:** [May 8, 2025, 8:50am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/3 "2025-05-08T08:50:05Z")

</div>

Hello, where can I see this limit? I’m on the pro plan  
Yes, I already have ping pong enabled, only some people get disconnected randomly.  
Also, how frequent are the restarts? Thanks

---

<div class="post-metadata">

**Author:** ![WhiteDemonhia](https://sea2.discourse-cdn.com/cloudflare/user_avatar/community.cloudflare.com/whitedemonhia/32/145478_2.png) [@WhiteDemonhia](https://community.cloudflare.com/u/WhiteDemonhia)\
**Post date:** [May 8, 2025, 8:54am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/4 "2025-05-08T08:54:48Z")

</div>

> [@Pepega](#):
>
> Hello, where can I see this limit? I’m on the pro plan

Open your Network Tab \> WebSockets. You’ll see: **Concurrent connection guidelines for your plan:**

 ![Captura de tela de 2025-05-08 06-00-23](https://global.discourse-cdn.com/cloudflare/original/3X/1/a/1ac2338da9ae79fb1a4ddf73a7e9d4837f2e11d9.png)  
 ![Captura de tela de 2025-05-08 06-01-21](https://global.discourse-cdn.com/cloudflare/original/3X/3/e/3efc859c88dbfbb9a251a514481a6ada7bf39638.png)

> [@Pepega](#):
>
> how frequent are the restarts?

Can’t tell you. It really depends if Cloudflare is implementing new codes or have another reason to restart their servers.

---

<div class="post-metadata">

**Author:** ![Pepega](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@Pepega](https://community.cloudflare.com/u/Pepega)\
**Post date:** [May 8, 2025, 9:03am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/5 "2025-05-08T09:03:30Z")

</div>

Thanks again, one last thing, I tried reading the docs but there’s nothing mentioned.  
How many connections does “medium” mean? So if it’s less I could upgrade to the business plan.

---

<div class="post-metadata">

**Author:** ![WhiteDemonhia](https://sea2.discourse-cdn.com/cloudflare/user_avatar/community.cloudflare.com/whitedemonhia/32/145478_2.png) [@WhiteDemonhia](https://community.cloudflare.com/u/WhiteDemonhia)\
**Post date:** [May 8, 2025, 9:09am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/6 "2025-05-08T09:09:51Z")

</div>

> [@Pepega](#):
>
> Thanks again

You’re welcome.

> [@Pepega](#):
>
> How many connections does “medium” mean?

Unfortunately, there’s no real number to tell you.

[https://cloudflare.zendesk.com/hc/en-us/articles/200169466-Using-Cloudflare-with-WebSockets](https://cloudflare.zendesk.com/hc/en-us/articles/200169466-Using-Cloudflare-with-WebSockets)

> ## What plan do I need for WebSockets support on my site?
> 
> | Cloudflare plan | Volume of concurrent connections | Example use case |
> | --- | --- | --- |
> | Free | Low | Hobby or demonstration site |
> | Pro | Medium | Project or small business |
> | Business | High | Important to your operations |
> | Enterprise | Custom | Mission critical and significant volume |

👇

> _ **Why are these volume limits not specific numbers?** _
> 
> Cloudflare powers several high-volume, mission critical WebSockets applications for Enterprise customers.
> 
> Since [introducing WebSockets support](https://blog.cloudflare.com/cloudflare-now-supports-websockets/) in 2014, Cloudflare has nearly tripled its network map, going from 28 locations to over 150 (as mid-2018). In all locations, we’ve added compute resources and multiple Tier 1 bandwidth providers.
> 
> We’re confident in our ability to offer WebSockets to all our customers now, but we’re also thoughtful about allocating resources – including WebSockets connections – by plan level. So, we’re starting with guidelines, and we’ll learn from our customers’ adoption.
> 
> We enable modern technologies which make the Internet better. The best way to do that is let customers play, grow, and thrive.

> ## What happens if my site exceeds the number of concurrent WebSockets connections that Cloudflare expects?
> 
> Immediately, nothing. Cloudflare will allow occasional spikes in usage beyond our guidelines and we will not apply unnecessary limits.
> 
> Repeated spikes or high continued usage will prompt a dialogue: we’ll reach out to learn more about your application. We will not impose limit errors for any application without contacting the customer unless we suspect that abuse or an attack is involved.
> 
> Customers whose usage claims a disproportionate percentage of resources for their current plan level may be asked to upgrade to the plan level that matches their needs.

---

<div class="post-metadata">

**Author:** ![Pepega](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@Pepega](https://community.cloudflare.com/u/Pepega)\
**Post date:** [May 8, 2025, 9:14am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/7 "2025-05-08T09:14:35Z")

</div>

Ok so I haven’t received any notification yet, I guess I’m safe. We have at most 1200 players active at once. I wonder what causes the disconnects for some random players then.

---

<div class="post-metadata">

**Author:** ![WhiteDemonhia](https://sea2.discourse-cdn.com/cloudflare/user_avatar/community.cloudflare.com/whitedemonhia/32/145478_2.png) [@WhiteDemonhia](https://community.cloudflare.com/u/WhiteDemonhia)\
**Post date:** [May 8, 2025, 9:21am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/8 "2025-05-08T09:21:45Z")

</div>

People may experience WebSocket disconnections due to network issues, instability, server overload or idle timeouts. In the worst case, the disconnection may be caused by CF Restarts which means you don’t have any control over it, but I don’t think this should happen so much, after all, it could harm several customers who depend on a stable WebSocket connection.

---

<div class="post-metadata">

**Author:** ![Pepega](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@Pepega](https://community.cloudflare.com/u/Pepega)\
**Post date:** [May 8, 2025, 9:29am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/9 "2025-05-08T09:29:51Z")

</div>

That’s the thing, none of this happened when I connected directly via the IP. I switch to CF proxy yesterday and it started happening.

---

<div class="post-metadata">

**Author:** ![WhiteDemonhia](https://sea2.discourse-cdn.com/cloudflare/user_avatar/community.cloudflare.com/whitedemonhia/32/145478_2.png) [@WhiteDemonhia](https://community.cloudflare.com/u/WhiteDemonhia)\
**Post date:** [May 8, 2025, 9:36am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/10 "2025-05-08T09:36:46Z")

</div>

That’s a pity. Since this seems to be critical for your business, I would advise that you open a support ticket for your case and see if the issue is at CF’s side with CF Team. Sometimes they’re here at the community, so, if you’re lucky they respond you here. But it’s best to not count with the luck and bring it directly to them.

---

<div class="post-metadata">

**Author:** ![Pepega](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@Pepega](https://community.cloudflare.com/u/Pepega)\
**Post date:** [May 8, 2025, 9:38am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/11 "2025-05-08T09:38:08Z")

</div>

Yup I’ve created a ticket, thanks a lot.

---

<div class="post-metadata">

**Author:** ![WhiteDemonhia](https://sea2.discourse-cdn.com/cloudflare/user_avatar/community.cloudflare.com/whitedemonhia/32/145478_2.png) [@WhiteDemonhia](https://community.cloudflare.com/u/WhiteDemonhia)\
**Post date:** [May 8, 2025, 9:40am UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/12 "2025-05-08T09:40:12Z")

</div>

No problem. You if you want, you can post your ticket number here, and someone with the privileges can escalate it for you.

---

<div class="post-metadata">

**Author:** ![Pepega](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@Pepega](https://community.cloudflare.com/u/Pepega)\
**Post date:** [May 8, 2025, 3:35pm UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/13 "2025-05-08T15:35:57Z")

</div>

This is my Case ID: 01[522](https://community.cloudflare.com/t/community-tip-fixing-error-522-connection-timed-out/42325)339  
Would appreciate any help

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/cloudflare/user_avatar/community.cloudflare.com/system/32/66551_2.png) [@system](https://community.cloudflare.com/u/system)\
**Post date:** [May 23, 2025, 3:36pm UTC](https://community.cloudflare.com/t/websocket-proxy-issues/796185/14 "2025-05-23T15:36:45Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
