http://www.igvita.com/2009/12/22/ruby-websockets-tcp-for-the-browser