@plexus XMPP - I had so much fun building a web client just by reading the RFCs and I would definitely use it for general real-time messaging problems