lib/sinatra-cometio/options.rb in sinatra-cometio-0.3.2 vs lib/sinatra-cometio/options.rb in sinatra-cometio-0.3.3
- old
+ new
@@ -1,7 +1,15 @@
module Sinatra
module CometIO
+ def cometio=(options)
+ CometIO.options = options
+ end
+
+ def cometio
+ CometIO.options
+ end
+
def self.default_options
{
:timeout => [120, lambda{|v| v.kind_of? Fixnum and v >= 20 }]
}
end