3 ms·
This announcement is a little light on details. What does Nginx supporting WebSockets even mean? Isn't it just looking for ws:// and proxy-passing that on to yo
by MatthewPhillips 14y ago
This announcement is a little light on details. What does Nginx supporting WebSockets even mean? Isn't it just looking for ws:// and proxy-passing that on to your application?
- pkulak 14y agoIt's looking for the upgrade header in HTTP, and then, yes, proxying that connection.
- sprobertson 14y agoYup, nice to have this built in rather than relying on an additional layer (Varnish, HAProxy, 3rd party module, etc.)
- elliotanderson 14y agoAs pkulak said, Nginx didn't understand the Upgrade header so you couldn't proxy http and ws connections on the same port. To get around that you had to add either another reverse proxy that did offload ws:// connections or run them on separate ports and deal with issues like corporate firewalls.