Re:You might not need WebSockets
by Dwedit on Friday April 11, 2025 @07:24PM
(#43659784)
WebSockets can't go through proxies.
[ Parent
| on HN ]
Re:You might not need WebSockets
by kingforaday on Friday April 11, 2025 @07:30PM
(#43659833)
I think what you are getting at is that websockets aren't as simple as http traffic through a proxy, but you absolutely can use proxies and ws connections just fine and for a variety of reasons.
For all the other comments, parent is probably talking about forward proxies and to their point many forward/enterprise proxies have configurations which cause websockets to break and it is a pain to debug this if you have many enterprise customers.
Echoing this. At $DAYJOB some 5-10% of customers will fail to initiate a websocket connection, even over wss:// despite plain HTTPS requests working fine. This is a client-side issue with whatever outdated HTTP CONNECT implementation the enterprise has.
Works completely fine in Haproxy
This isn't based on any facts
I've definitely used websockets through nginx
Re:You might not need WebSockets
by hombre_fatal on Friday April 11, 2025 @07:37PM
(#43659872)
They even go through Cloudflare.
or Fly.io
Re:You might not need WebSockets
by andrewmcwatters on Friday April 11, 2025 @08:01PM
(#43660040)
Says who?
Re:You might not need WebSockets
by shadowangel on Friday April 11, 2025 @11:16PM
(#43661022)
I use them though nginx/cloudflare. they work fine.