How to curl websockets and some nginx
We all know we could use curl anytime with HTTP requests but what about WebSockets? I was debugging a WebSocket the other day which was basically a Docker service sitting behind an Nginx reverse proxy so I figured I’d write it down. But, first of all, a bit of basics. http vs websockets HTTP is request and response. Stateless. You ask for something, the server responds, and that’s it. WebSockets are stateful. They create a persistent, two-way connection between your browser and the server on. Think of it like UDP but running on top of TCP and as part of the application layer lol. ...