The Virtual Commons

building extensible software for collective action research

RIA

real time in the browser

Real-time browser interactions

There's a few ways to get real-time in the browser - use a rich client interface like Flash or Flex with GraniteDS/BlazeDS, Shockwave, Java Applets, Silverlight, or go with a JavaScript solution. On the JavaScript side there appear to be two options - AJAX or server push via persistent socket connection (e.g., websockets / socket.io). If using straight-up AJAX, we'd be polling the server periodically to check for new messages. A better solution is server push, we establish a long-lived, persistent connection via JavaScript to an asynchronous server process that can maintain many long-lived persistent connections.

Syndicate content