title: understanding websockets on the server side
body: <p>I have a some questions in understanding websocket communication. AFAIU, in client side, it works like this:</p>
  
  <ol>
  <li>From client, a new Socket handler is created using "new WebSocket('ws://blahblah')"</li>
  <li>Then using onOpen() method its known that we are connected to WS server</li>
  <li>Using onMessage() metthod, its known that a message has been received from WS Server</li>
  <li>OnClose() method dictates the socket connection is closed</li>
  </ol>
  
  <p>So from client perspective its clear. 
  But from the server perspective how the flow goes (as above for client) and what is exactly mean by a websocket server process and what is exactly when we mean the communication happens on TCP and how do we check that (my aplologies if the question is very basic)</p>
  
  <p>Can somebody please explain.
  Thanks in advannce</p>