java - Is websocket connection reliable? -
i thought web socket guarantees delivery of data built on top of tcp reliable. reading java web socket api documentation on link https://docs.oracle.com/javaee/7/api/javax/websocket/remoteendpoint.html
says
there no guarantee of successful delivery of web socket message peer, if action of sending message causes error known container, api throws it.
shouldn't tcp gurantee message delivery?
reliable != guaranteed. reliable means you'll notified if there failure (or success) - if end users unplugs lan cable, tcp can't 'guarantee delivery.'
Comments
Post a Comment