EventMachine,Sinatraのインテグレーション - eventmachine - sinatra - routing
eventmachineでルーティングが必要になりライブラリを探していたのですが、
sinatraと組み合わせるのが一番簡単そうです。
# /path/to/emapp.rb %w( rubygems eventmachine shout sinatra/base ).each { |lib| require lib} EventMachine::run do class App < Sinatra::Base get '/' do end end App.run!(:port => 3000) end
でおkです。
時間があったらwebsocket + EventMachineのインテグレーションも紹介したいと思います。
参考
Any success with Sinatra working together with EventMachine WebSockets? - stack overflow