4

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?

5
  • In addition to the vote counter, comments, new answers, and post edits will also show in real-time via web sockets. Commented May 21, 2013 at 16:56
  • @Mysticial okay, thanks :) perhaps you could make it an answer? Commented May 21, 2013 at 16:57
  • 1
    Insilico has it. I think this question is a dupe anyway. Commented May 21, 2013 at 17:01
  • 1
    Or perhaps a better one: meta.stackexchange.com/questions/129499/… Commented May 21, 2013 at 17:11
  • @Bart Maybe this? meta.stackexchange.com/questions/125677/… Commented May 21, 2013 at 17:15

1 Answer 1

8

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 (https://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