Re:You might not need a WebSocket
by YZF on Thursday July 10, 2014 @01:02PM
(#8015761)
agreed but "long polling" is not really polling because you're blocking on the HTTP request. Something over UDP sounds like the answer to the complaints about TCP connections getting dropped though. TCP was built for streaming...
[ Parent
| on HN ]
Re:You might not need a WebSocket
by colanderman on Thursday July 10, 2014 @03:45PM
(#8016779)
TCP technically relies only on state on the endpoints, so it "should" never be dropped unless the endpoints agree. But NAT and various other interlopers ruin this model, as state is then kept in middle-boxes.
UDP would evince the same problem when traversing NAT, since it also would require state to be kept in middle-boxes. The only difference is that instead of periodically reconnecting, you'd need to periodically ping.