Concept Flow - Authentication in WebSocket connections
Client sends WebSocket handshake request
Server receives handshake request
Server checks authentication token
Accept connection
Open WebSocket
Exchange messages securely
The client requests a WebSocket connection. The server checks the authentication token during handshake. If valid, connection opens; if not, it rejects.