MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/c08mss/websockets_vs_long_polling/er3iq2p/?context=9999
r/programming • u/therealgillbates • Jun 13 '19
199 comments sorted by
View all comments
425
[removed] — view removed comment
274 u/sysop073 Jun 13 '19 Go figure, since they were basically invented to eliminate the need for polling 60 u/hashtagframework Jun 13 '19 Go figure, my web host doesn't support WebSockets in the auto-scale configuration I use, but Long Polling still works fine. 119 u/saltybandana2 Jun 13 '19 the only reason you would use long polling is being unable to use websockets in a reasonable manner. 13 u/hashtagframework Jun 13 '19 Do you always have to support a long polling backup in case the client can't use websockets? 0 u/[deleted] Jun 13 '19 [deleted] 16 u/hashtagframework Jun 13 '19 What about clients using VPNs or behind restrictive firewalls? I was more concerned about the network limitations. Does the WebSocket tunnel just like a normal TCP keep-alive HTTP request? Are they prone to disconnects? 0 u/[deleted] Jun 13 '19 [deleted] 0 u/[deleted] Jun 13 '19 [deleted] 72 u/Doctor_McKay Jun 13 '19 Connect again.
274
Go figure, since they were basically invented to eliminate the need for polling
60 u/hashtagframework Jun 13 '19 Go figure, my web host doesn't support WebSockets in the auto-scale configuration I use, but Long Polling still works fine. 119 u/saltybandana2 Jun 13 '19 the only reason you would use long polling is being unable to use websockets in a reasonable manner. 13 u/hashtagframework Jun 13 '19 Do you always have to support a long polling backup in case the client can't use websockets? 0 u/[deleted] Jun 13 '19 [deleted] 16 u/hashtagframework Jun 13 '19 What about clients using VPNs or behind restrictive firewalls? I was more concerned about the network limitations. Does the WebSocket tunnel just like a normal TCP keep-alive HTTP request? Are they prone to disconnects? 0 u/[deleted] Jun 13 '19 [deleted] 0 u/[deleted] Jun 13 '19 [deleted] 72 u/Doctor_McKay Jun 13 '19 Connect again.
60
Go figure, my web host doesn't support WebSockets in the auto-scale configuration I use, but Long Polling still works fine.
119 u/saltybandana2 Jun 13 '19 the only reason you would use long polling is being unable to use websockets in a reasonable manner. 13 u/hashtagframework Jun 13 '19 Do you always have to support a long polling backup in case the client can't use websockets? 0 u/[deleted] Jun 13 '19 [deleted] 16 u/hashtagframework Jun 13 '19 What about clients using VPNs or behind restrictive firewalls? I was more concerned about the network limitations. Does the WebSocket tunnel just like a normal TCP keep-alive HTTP request? Are they prone to disconnects? 0 u/[deleted] Jun 13 '19 [deleted] 0 u/[deleted] Jun 13 '19 [deleted] 72 u/Doctor_McKay Jun 13 '19 Connect again.
119
the only reason you would use long polling is being unable to use websockets in a reasonable manner.
13 u/hashtagframework Jun 13 '19 Do you always have to support a long polling backup in case the client can't use websockets? 0 u/[deleted] Jun 13 '19 [deleted] 16 u/hashtagframework Jun 13 '19 What about clients using VPNs or behind restrictive firewalls? I was more concerned about the network limitations. Does the WebSocket tunnel just like a normal TCP keep-alive HTTP request? Are they prone to disconnects? 0 u/[deleted] Jun 13 '19 [deleted] 0 u/[deleted] Jun 13 '19 [deleted] 72 u/Doctor_McKay Jun 13 '19 Connect again.
13
Do you always have to support a long polling backup in case the client can't use websockets?
0 u/[deleted] Jun 13 '19 [deleted] 16 u/hashtagframework Jun 13 '19 What about clients using VPNs or behind restrictive firewalls? I was more concerned about the network limitations. Does the WebSocket tunnel just like a normal TCP keep-alive HTTP request? Are they prone to disconnects? 0 u/[deleted] Jun 13 '19 [deleted] 0 u/[deleted] Jun 13 '19 [deleted] 72 u/Doctor_McKay Jun 13 '19 Connect again.
0
[deleted]
16 u/hashtagframework Jun 13 '19 What about clients using VPNs or behind restrictive firewalls? I was more concerned about the network limitations. Does the WebSocket tunnel just like a normal TCP keep-alive HTTP request? Are they prone to disconnects? 0 u/[deleted] Jun 13 '19 [deleted] 0 u/[deleted] Jun 13 '19 [deleted] 72 u/Doctor_McKay Jun 13 '19 Connect again.
16
What about clients using VPNs or behind restrictive firewalls? I was more concerned about the network limitations. Does the WebSocket tunnel just like a normal TCP keep-alive HTTP request? Are they prone to disconnects?
0 u/[deleted] Jun 13 '19 [deleted] 0 u/[deleted] Jun 13 '19 [deleted] 72 u/Doctor_McKay Jun 13 '19 Connect again.
0 u/[deleted] Jun 13 '19 [deleted] 72 u/Doctor_McKay Jun 13 '19 Connect again.
72 u/Doctor_McKay Jun 13 '19 Connect again.
72
Connect again.
425
u/[deleted] Jun 13 '19
[removed] — view removed comment