Complete the code to specify the protocol used for real-time communication.
The client initiates a connection using the [1] protocol.The WebSocket protocol enables full-duplex communication channels over a single TCP connection, ideal for real-time data exchange.
Complete the code to identify the server component that handles WebSocket connections.
The [1] manages incoming WebSocket connections and message routing.
The WebSocket server is responsible for accepting connections and managing message flow between clients.
Fix the error in the connection upgrade process code snippet.
HTTP request header must include 'Upgrade: [1]' to switch protocols.
The 'Upgrade' header must specify 'websocket' to initiate the protocol switch from HTTP to WebSocket.
Fill both blanks to complete the message flow in WebSocket communication.
Client sends a [1] frame, and server responds with a [2] frame.
In WebSocket, a client sends a 'ping' frame to check connection health, and the server replies with a 'pong' frame.
Fill all three blanks to complete the architecture components for scalable WebSocket service.
Use a [1] to distribute connections, a [2] to maintain session state, and a [3] to handle message broadcasting.
A load balancer distributes client connections across servers, a session store keeps track of user sessions, and a message broker efficiently broadcasts messages to clients.