Sha256: 5a90a973f6fd1b69a9d24cd34c4eddbb08c901d2aeaef21927eb8ca0b102195e

Contents?: true

Size: 490 Bytes

Versions: 2

Compression:

Stored size: 490 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
Bundler.require
if development?
  $stdout.sync = true
  require 'sinatra/reloader'
  $:.unshift File.expand_path '../lib', File.dirname(__FILE__)
end
require 'eventmachine'
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 Sinatra::Application

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sinatra-websocketio-0.0.6 sample/config.ru
sinatra-websocketio-0.0.5 sample/config.ru