title: Is websocket connection reliable?
body: <p>I always thought that web socket guarantees delivery of data as it is built on top of TCP which is reliable. I was reading the Java web socket API documentation on this link
  <a href="https://docs.oracle.com/javaee/7/api/javax/websocket/RemoteEndpoint.html" rel="noreferrer">https://docs.oracle.com/javaee/7/api/javax/websocket/RemoteEndpoint.html</a><br>
  It says that  </p>
  
  <blockquote>
    <p>There is no guarantee of the successful delivery of a web socket message to the peer, but if the action of sending a message causes an error known to the container, the API throws it.</p>
  </blockquote>
  
  <p>Shouldn't TCP gurantee the message delivery?</p>