I have a question regarding these three data transmission protocols on the Internet. I know that TCP/IP sockets are a form of low-level communication that uses the transport layer to perform data transmission and handles it very well.
But the WebSockets and the HTTP Request , I understand that they are built on the application layer and from the examples that I have seen both are very similar in terms of their form.
I am right? Are WebSockets an enhancement to HTTP Request or are they the same thing? In what cases is it better to use WebSockets than an HTTP Request?