The following flow is a simplified representation of the lifecycle of a WebSocket connection between a client and a
server. It includes the initialization phase, the operation phase, and the shutdown phase.Initialization phase is the first step in establishing a WebSocket connection between a client and a server.
This phase is crucial for setting up the necessary parameters and ensuring that both parties are ready for
communication.Upon successful initialization, server and client begin the operation phase, where they can exchange messages
bidrectionally. This phase allows for real-time communication and data transfer between the two parties.Finally, the shutdown phase occurs when either the client or server decides to terminate the connection.