$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) require 'eventmachine' require 'blather/client/client' require 'evma_httpserver' require 'base64' require 'compp/connection' require 'compp/default' require 'compp/sprinkler' module Compp def self.start(klass, options = {}) EM.epoll host = options[:host] || "0.0.0.0" port = Integer(options[:port] || 8989) EM.run { EM.start_server(host, port, klass, options) } end end