Concept Flow - WebSockets for real-time communication
Client sends HTTP request to server
Server responds with HTTP 101 Switching Protocols
WebSocket connection established
Client and Server exchange messages anytime
Connection stays open until closed by either side
Connection closed
The client starts by requesting to upgrade to WebSocket. The server agrees, and then both keep the connection open to send messages instantly until one closes it.