title: Javascript Server-side Events
body: <p>I'm looking for the fastest way for multiple users on different machines to interact, and I think it's by using the server as the communication facilitator. So user A and user B both create a socket connection to the server of some kind and whenever user A does something it sends a message to the server, which then sends a message to user B.</p>
  
  <p>The later part is what I'm trying to do in <strong>javascript</strong>. I've already done it in flash with XMLSocket, so is there an equivalent functionality in javascript?</p>
  
  <p><em>PS:</em> I found EventSource() here: <a href="http://dev.w3.org/html5/eventsource/" rel="nofollow noreferrer">http://dev.w3.org/html5/eventsource/</a> , but I'm not sure if it's implemented by browsers yet.</p>
  
  <p><strong>Edit:</strong> Ideally it would be used for things like chat applications where real-time events are needed, so using ajax calls every X seconds would be too slow. Why hasn't W3C added such an HTML 5 object yet, since it seems to be very useful.</p>