Sha256: 69b61b889cef7535a091baea7e6ba2c133631efcab6b26a1ac7ae1a789d1010b
Contents?: true
Size: 637 Bytes
Versions: 4
Compression:
Stored size: 637 Bytes
Contents
require 'rubygems' $:.unshift File.expand_path '../../lib', File.dirname(__FILE__) require 'sinatra' require 'sinatra/base' if development? $stdout.sync = true require 'sinatra/reloader' end require 'sinatra/rocketio' require 'haml' require 'sass' require File.dirname(__FILE__)+'/main' set :haml, :escape_html => true set :cometio, :timeout => 120, :post_interval => 2, :allow_crossdomain => true set :websocketio, :port => (ENV['WS_PORT'] || 9000).to_i set :rocketio, :comet => true, :websocket => true case RUBY_PLATFORM when /linux/i then EM.epoll when /bsd/i then EM.kqueue end EM.set_descriptor_table_size 10000 run ChatApp
Version data entries
4 entries across 4 versions & 1 rubygems