Interview Prep/Networking/HTTP, TLS & Certificates

What is WebSocket and how does it get through proxies?

IntermediateConceptHTTP, TLS & Certificates
Answer

A WebSocket starts as an HTTP/1.1 request with Upgrade: websocket and Connection: Upgrade, receives 101 Switching Protocols, then becomes a long-lived bidirectional channel. Proxies need to pass those hop-by-hop headers and use long timeouts.

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 3600s;
All Networking questions Roadmap: Networking for DevOps

More on HTTP, TLS & Certificates