Sha256: 08f608751192fe122acb71c241c542c43891c2bb5b5d9f6bb1b101acd24fe816

Contents?: true

Size: 495 Bytes

Versions: 4

Compression:

Stored size: 495 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
Bundler.require
require 'sinatra'
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 => 9000

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

Version Path
sinatra-websocketio-0.3.1 sample/config.ru
sinatra-websocketio-0.3.0 sample/config.ru
sinatra-websocketio-0.2.9 sample/config.ru
sinatra-websocketio-0.2.8 sample/config.ru