sample/config.ru in sinatra-websocketio-0.0.4 vs sample/config.ru in sinatra-websocketio-0.0.5
- old
+ new
@@ -11,6 +11,12 @@
require File.dirname(__FILE__)+'/main'
set :haml, :escape_html => true
set :websocketio, :port => 8080
+case RUBY_PLATFORM
+when /linux/i then EM.epoll
+when /bsd/i then EM.kqueue
+end
+EM.set_descriptor_table_size 10000
+
run Sinatra::Application