Sha256: 55977de3aa3a46c568feeb1b34c99cf8acd1f98b3cba1ccdf7c4d21fc9c2ab5b

Contents?: true

Size: 554 Bytes

Versions: 3

Compression:

Stored size: 554 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
Bundler.require
require 'sinatra/base'
if development?
  $stdout.sync = true
  require 'sinatra/reloader'
  $:.unshift File.expand_path '../lib', File.dirname(__FILE__)
end
require 'sinatra/rocketio'
require File.dirname(__FILE__)+'/main'

set :haml, :escape_html => true
set :cometio, :timeout => 120
set :websocketio, :port => 8080
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

3 entries across 3 versions & 1 rubygems

Version Path
sinatra-rocketio-0.0.4 sample/config.ru
sinatra-rocketio-0.0.3 sample/config.ru
sinatra-rocketio-0.0.2 sample/config.ru