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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -