{"id":2769,"date":"2019-10-23T12:13:20","date_gmt":"2019-10-23T04:13:20","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&p=2769"},"modified":"2022-10-05T08:01:48","modified_gmt":"2022-10-05T00:01:48","slug":"can-i-use-cloudflare-with-websockets","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/can-i-use-cloudflare-with-websockets","title":{"rendered":"Can I use Cloudflare with WebSockets?"},"content":{"rendered":"\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

Can I Use Cloudflare with WebSockets<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

WebSockets are available for all Cloudflare customers, with concurrent connections allocated by plan.<\/em><\/p>

WebSockets are open connections sustained between the client and the origin server. Inside a WebSockets connection, the client and the origin can pass data back and forth without having to reestablish sessions. This makes exchanging data within a WebSockets connection fast. WebSockets are often use for real-time applications such as live chat and gaming.<\/p>

Learn more about\u00a0WebSockets<\/a>\u00a0and the most common uses of the protocol.<\/p>


What plan do I need for WebSockets support on my site?<\/strong><\/h4>
Cloudflare plan<\/strong><\/td>Volume of
concurrent connections<\/strong><\/td>
Example use case<\/strong><\/td><\/tr>
Free<\/td>Low<\/td>Hobby or demonstration site<\/td><\/tr>
Pro<\/td>Medium<\/td>Project or small business<\/td><\/tr>
Business<\/td>High<\/td>Important to your operations<\/td><\/tr>
Enterprise<\/td>Custom<\/td>Mission critical and significant volume<\/td><\/tr><\/tbody><\/table>

How can I use WebSockets with Cloudflare?<\/strong><\/h4>

No additional configuration is required to send WebSockets traffic through Cloudflare. Cloudflare will immediately begin proxying your WebSockets through to your origin.<\/p>


Why are these volume limits not specific numbers?<\/strong><\/h4>

Cloudflare powers several high-volume, mission critical WebSockets applications for Enterprise customers.<\/p>

Since introducing WebSockets support in 2014, Cloudflare has nearly triple its network map, going from 28 locations to over 150 (as mid-2018). In all locations, we’ve add compute resources and multiple Tier 1 bandwidth providers.<\/p>

We’re confident in our ability to offer WebSockets to all our customers now, but we’re also thoughtful about allocating resources \u2013 including WebSockets connections \u2013 by plan level. So, we’re starting with guidelines, and we’ll learn from our customers’ adoption.<\/p>

We enable modern technologies which make the Internet better. The best way to do that is let customers play, grow, and thrive.<\/p>


Can I use WebSockets over SSL?<\/strong><\/h4>

Yes, Cloudflare SSL fully supports WebSockets traffic passing through our network.<\/p>


Do Cloudflare Workers support proxying WebSockets?<\/strong><\/h4>

Yes, Cloudflare Workers support proxying WebSockets. However, it currently does not support:<\/p>