Just curious -- when I refresh a random SE site's home page, I see a message in my JavaScript console:

[18:50:38.128] De verbinding met ws://sockets.ny.stackexchange.com/ werd onderbroken tijdens het laden van de pagina. @ http://cdn.sstatic.net/js/full.js?v=ee8dc25807f6:13

In English, that would be something like...

[18:50:38.128] The connection with ws://sockets.ny.stackexchange.com/ has been interrupted during the pageload. @ http://cdn.sstatic.net/js/full.js?v=ee8dc25807f6:13

What is this web socket for?

  • @Mysticial okay okay, thanks for the demonstration! – Keelan May 21 '13 at 16:54
  • @Mysticial For me it would have been okay if you had stopped after upvoting. – Keelan May 21 '13 at 16:54
  • In addition to the vote counter, comments, new answers, and post edits will also show in real-time via web sockets. – Mysticial May 21 '13 at 16:56
  • @Insilico thanks for those links! – Keelan May 21 '13 at 16:57
  • @Mysticial okay, thanks :) perhaps you could make it an answer? – Keelan May 21 '13 at 16:57
  • 1
    Insilico has it. I think this question is a dupe anyway. – Mysticial May 21 '13 at 17:01
  • 1
    Or perhaps a better one: meta.stackexchange.com/questions/129499/… – Bart May 21 '13 at 17:11
  • @Bart Maybe this? meta.stackexchange.com/questions/125677/… – Josh Darnell May 21 '13 at 17:15
  • 1
    @jadarnel27 Take your pick, but close it we shall dammit!! ;) – Bart May 21 '13 at 17:18

Websockets on the Q&A site proper are used for live updates to the homepage and for live updates to questions, answers, and your inbox. The chat subsite (http://chat.stackoverflow.com) also uses websockets to implement the live chat function. The chat subsite does use websockets, but I'm not positive of its actual function.

This feature has been implemented for a while now. You can check for new features here: Recent feature changes to Stack Exchange

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