Sha256: 3895100d8c5f4ca9f532458ef9a1d81f96d04d53b0608517338198e2351804c9

Contents?: true

Size: 477 Bytes

Versions: 8

Compression:

Stored size: 477 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/websocketio'
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 ChatApp

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sinatra-websocketio-0.1.7 sample/config.ru
sinatra-websocketio-0.1.6 sample/config.ru
sinatra-websocketio-0.1.5 sample/config.ru
sinatra-websocketio-0.1.4 sample/config.ru
sinatra-websocketio-0.1.3 sample/config.ru
sinatra-websocketio-0.1.2 sample/config.ru
sinatra-websocketio-0.1.1 sample/config.ru
sinatra-websocketio-0.1.0 sample/config.ru