title: WebSocket - Close Frame
body: <p>The websocket RFC states the following:</p>
  
  <blockquote>
    <p>If an endpoint receives a Close frame and did not previously send a Close frame, the endpoint MUST send a Close frame in response.</p>
  </blockquote>
  
  <p>Later it also mentions:</p>
  
  <blockquote>
    <p>The server MUST close the underlying TCP connection immediately;</p>
  </blockquote>
  
  <p>It makes sense when the server initiate the close handshake since on retrieval of the close frame response from the client, the server can do a TCP close.</p>
  
  <p>What should happen when the close handshake starts from the client? Should the client resent some type of message to instruct the server endpoint to do a TCP close? or should the server do a tcp close on retrieval of a close frame?</p>