3 ms·
Are they pushing those realtime vote counts with websockets? Pretty slick. Beats polling by far. Looks like IE is holding it back as usual: https://developer.
by ck2 14y ago
Are they pushing those realtime vote counts with websockets? Pretty slick. Beats polling by far.
Looks like IE is holding it back as usual:
https://developer.mozilla.org/en-US/docs/WebSockets#Browser_compatibility https://developer.mozilla.org/en-US/docs/WebSockets#Browser_...
- ygra 14y agoUnless my eyes are strange that page says it's supported on IE.
- ck2 14y agoThis chart is easier to read: http://caniuse.com/#feat=websockets http://caniuse.com/#feat=websockets Only IE10 and above. And IE Mobile would be dubious. Even older safari 5.1 has partial support but not IE. Surprised to see android mobile does not have support - is that chart correct?
- serge2k 14y agoIE10 came out around the same time as Firefox 16 didn't it?
- adieulot 14y agoYes that’s websockets it seems. Must be quite a overhead, they use it on all answers.
- Trufa 14y agoBut it's awfully cool when you see it going up or down :)
- naiquevin 14y agoYes, it's websockets. You can check it in Chrome by keeping the console open and refreshing the page. Would be interesting to test in IE. BTW, as much as I am amazed to see websockets in action, the real time updating of vote count feels creepy and distracting at the same time :-)
- mattmanser 14y agoYeah, I guess we're going to see a lot more bad UX abuse of this in the near future. It's very distracting.
- ck2 14y agoIt makes me feel more connected though. As long as it's not abused I think it's a clever use. Have to research how to setup websocket server. This looks like an impressive project http://socket.io/ http://socket.io/
- KyleBrandt 14y agoWe currently have ~ 128k open sessions for sockets (They all go through HAProxy). They socket server process runs on 9 web servers, and each service is using less than 1% CPU at the moment. So very efficient from a sysadmin perspective (We did some tuning with conntrack so only the outside is tracked on the load balancers). Devs could give a lot more detail.
- gdalgas 14y agoYou can read a bit more about our implementation here: http://meta.stackoverflow.com/questions/168145/sockets-used-by-stack-overflow http://meta.stackoverflow.com/questions/168145/sockets-used-...