MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/c08mss/websockets_vs_long_polling/er3n3w6/?context=3
r/programming • u/therealgillbates • Jun 13 '19
199 comments sorted by
View all comments
425
[removed] — view removed comment
2 u/josejimeniz2 Jun 13 '19 Until there's a network issue, and the socket breaks.Then you change it to:open a socket for a long time (i.e. 120 seconds)then close itgoto 100I call it: Long-polling with websockets. 3 u/Ununoctium117 Jun 14 '19 Why not just listen for the "closed" event and put your error handling there?
2
Until there's a network issue, and the socket breaks.
Then you change it to:
open a socket for a long time (i.e. 120 seconds)
then close it
goto 100
I call it: Long-polling with websockets.
3 u/Ununoctium117 Jun 14 '19 Why not just listen for the "closed" event and put your error handling there?
3
Why not just listen for the "closed" event and put your error handling there?
425
u/[deleted] Jun 13 '19
[removed] — view removed comment