News for hackers. Stuff that matters.
Re:Ask HN: WebSocket APIs vs. REST APIs – will it make a dif... by bruce511 on Friday September 17, 2021 @01:18AM (#28561494)
>> Some ISPs block websockets with some websites

While I'm assuming you have personal experience of this, and I hesitate to make absolute statements, if your connection is HTTPS end to end, I'm not sure how an ISP can "block" it. The ISP sees a regular web connection on port 443, and everything inside that is encrypted.

So I'm not sure _how_ it would even know it's web-sockets except perhaps for heuristics on traffic behaviour - and even then it must look similar to keep-alive or HTTP2.

With good planning it's easy to do multiple requests on a single socket (the requests themselves would be serialized over the socket, but the server could easily spawn threads to process each request, and then pump the answers back when they are ready.) The connection itself would be serialized, but the handling at either end could easily deal with multiple requests and responses.

There are no comments on this comment yet.