Complete the sentence to describe WebSockets.
WebSockets provide a [1] connection between client and server for real-time data exchange.
WebSockets create a two-way (full-duplex) connection allowing both client and server to send data anytime.
Complete the sentence about the WebSocket protocol handshake.
The WebSocket connection starts with an HTTP [1] request to upgrade the protocol.
The WebSocket handshake begins with an HTTP GET request that asks the server to switch to the WebSocket protocol.
Fix the error in the WebSocket URL format.
A valid WebSocket URL starts with [1] or wss:// for secure connections.
WebSocket URLs start with ws:// for normal and wss:// for secure connections, not HTTP or other protocols.
Fill both blanks to complete the WebSocket message flow description.
After the connection is open, the client can [1] messages and the server can [2] messages anytime.
Both client and server can send messages independently once the WebSocket connection is open.
Fill all three blanks to complete the WebSocket lifecycle steps.
First, the client sends a [1] request. Then, the server responds with a [2] status. Finally, both sides [3] data over the connection.
The WebSocket lifecycle starts with a handshake request, followed by a 101 Switching Protocols response, then both sides exchange data.