Can Cloudflare Tunnel be used for applications that require persistent connections (e.g., WebSockets)?

Question

Grade: Education Subject: Support
Can Cloudflare Tunnel be used for applications that require persistent connections (e.g., WebSockets)?
Asked by:
102 Viewed 102 Answers

Answer (102)

Best Answer
(315)
Yes, Cloudflare Tunnel supports persistent connections like WebSockets. It maintains the outbound connection, allowing for bidirectional communication between the client and your application. While reverse proxies can also handle WebSockets, configuring them correctly can be more complex and may introduce latency.