Recently, I have been working with websockets. Created my own server and there is a public demonstration . I do not have such detailed experience or knowledge: http. (Although, since websocket requests are being updated with HTTP requests, I have some.)
At my end, the server reports each hit. Among them, there are a bunch of HTTP stay requests. My server does not process them because they are not websocket requests. But it aroused my curiosity.
The whole big thing about websites is that the connection remains alive. Then you can send messages in both directions (even at the same time). I read that the Stay-Alive HTTP connection is a relatively new development (I don’t know how old people are, just that it’s only included in the very latest standard - 1.1) - is this really old?)
I suppose I can assume that there is a difference in behavior between the two, or would there be no reason for the websocket standard? Who cares?
source
share