module Compp class Connection < EM::Connection include EventMachine::HttpServer ## # Initialize a new Compp:Connection def initialize(opts = {}) end ## # Sends obj.to_str on the comet connection! def orbitize(obj) send_data(obj.to_str + "\r\n") end ## # This is called upon new connection by an external client. def process_http_request # Does nothing, this should be overriden if you want more advanced behavior end end end