Sha256: 40f49755f1084a801b91edef0e1334ebf4a19d685b5886157a6c62731c2f608e

Contents?: true

Size: 641 Bytes

Versions: 2

Compression:

Stored size: 641 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
Bundler.require
require 'sinatra'
if development?
  $stdout.sync = true
  require 'sinatra/reloader'
  $:.unshift File.expand_path '../../lib', File.dirname(__FILE__)
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
set :websocketio, :port => (ENV['WS_PORT'] || 8080).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 Sinatra::Application

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sinatra-rocketio-0.2.5 sample/classic_style/config.ru
sinatra-rocketio-0.2.4 sample/classic_style/config.ru