3 ms·
Is it worth upgrading a long polling solution to SSE? Would I see much benefit? What I mean by that is client sends request, server responds in up to 2 minutes
by quickthrower2 5y ago
Is it worth upgrading a long polling solution to SSE? Would I see much benefit?
What I mean by that is client sends request, server responds in up to 2 minutes with result or a try again flag. Either way client resends request and then uses response data if provided.
- bullen 5y agoYes, since IE7 is out of the game long-polling is no longer needed. Comet-stream and SSE will save you alot of bandwidth and CPU!!!
- layer8 5y agoWhat is particular about IE7? According to https://caniuse.com/eventsource https://caniuse.com/eventsource, SSE is unsupported through IE11.
- bullen 5y agoYou don't need to use Event-Source to use SSE, look at how I implemented it here: https://github.com/tinspin/fuse/blob/master/res/play.html#L160 https://github.com/tinspin/fuse/blob/master/res/play.html#L1... The XHR ready state 3 was wrongly implemented in IE7, they fixed it in IE8.