2 ms·
> HTTP is stateless so it creates a new socket for each and every message Well, HTTP 1.1 supports persistent connections and pipelining[1]. Though I suppose i
by magicalhippo 4y ago
> HTTP is stateless so it creates a new socket for each and every message
Well, HTTP 1.1 supports persistent connections and pipelining[1].
Though I suppose if you're a JavaScript in the browser it's easier to just use WebSockets.
[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Connection_management_in_HTTP_1.x https://developer.mozilla.org/en-US/docs/Web/HTTP/Connection...