HTTP and WebSocket are protocols that are used for data transfer/rendering.
HTTP is a one-way communication protocol, while WebSocket is two-way. Whenever a request is made via HTTP, a client(browser) connection is established and closed once the server's response is received.