Which statement is true about the relationship between HTTP and WebSockets?
Which statement is true about the relationship between HTTP and WebSockets?
A WebSocket connection is initialized with an HTTP handshake. This is because WebSockets use an HTTP request (via an Upgrade header) to transition from an HTTP to a WebSocket connection, but after this handshake, the connection is no longer an HTTP connection and instead follows the WebSocket protocol. This allows for full-duplex communication, which is different from the request-response model of HTTP.
B is correct !
B is the correct answer
Answer B. Traditional HTTP communication model assumes that each call is always originated by the client. Once a WebSocket connection is establish by HTTP handshake does not use HTTP after that.
D is wrong awnser