Sha256: ee65972a99498226ee41b6513b80049e93cfc9c9f839e6bbececa7e046c88588
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
compp-1.0.0 | lib/compp/connection.rb |