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.
The later part is what I'm trying to do in javascript. I've already done it in flash with XMLSocket, so is there an equivalent functionality in javascript?
PS: I found EventSource() here: http://dev.w3.org/html5/eventsource/ , but I'm not sure if it's implemented by browsers yet.
Edit: 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.