http://www.lullabot.com/podcasts/drupal-voices-189-justin-randell-on-rea...
Check chat module for drupal 7 to see an implementation