2

Possible Duplicate:
New Feature: real time updates to questions, answers, and inbox

Does it use AJAX? If so how often does it update? It seems pretty up-to-date when I see people voting on my posts. Does calling an AJAX request like that every second make a whole lot of difference to calling that same request every 5 minutes in terms of computer processing and latency?

marked as duplicate by Shadow The Curly Braced Wizard, Time Traveling Bobby, animuson, yoozer8, Bart Nov 14 '12 at 16:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    I'm pretty sure that this utilizes the socket functionally added recently... In the same way that vote counts update and new comments... – Lix Nov 14 '12 at 15:42
  • 1
    It's a live client/server connection using web sockets which were introduced as part of HTML5. – Shadow The Curly Braced Wizard Nov 14 '12 at 15:49
  • I don't think that post is the right dupe... It only talks about new questions... – Lix Nov 14 '12 at 15:55
  • 1
    @Lix: from the post: As a few have mentioned below we are now experimenting with updating comment counts, votes on a post, and your reputation score. (emphasis mine). – Martijn Pieters Nov 14 '12 at 15:57
  • 1
    @Lix it introduced the use of web sockets in Stack Exchange; they later added more stuff so maybe that post need to be edited. – Shadow The Curly Braced Wizard Nov 14 '12 at 15:58
5

The counter uses web-sockets for that; here you can see them in the Chrome development console:

web sockets

Not the answer you're looking for? Browse other questions tagged .