sample/classic_style/config.ru in sinatra-rocketio-0.2.5 vs sample/classic_style/config.ru in sinatra-rocketio-0.2.6
- old
+ new
@@ -11,10 +11,10 @@
require 'haml'
require 'sass'
require File.dirname(__FILE__)+'/main'
set :haml, :escape_html => true
-set :cometio, :timeout => 120, :post_interval => 2
+set :cometio, :timeout => 120, :post_interval => 2, :allow_crossdomain => true
set :websocketio, :port => (ENV['WS_PORT'] || 8080).to_i
set :rocketio, :comet => true, :websocket => true
case RUBY_PLATFORM
when /linux/i then EM.epoll