sinatra-websocket icon indicating copy to clipboard operation
sinatra-websocket copied to clipboard

Error while running with Rainbows!

Open d4l3k opened this issue 11 years ago • 1 comments

When I try to use the server Rainbows! with sinatra-websocket I get this error.

NoMethodError - undefined method `backend' for #<Rainbows::EventMachine::Client:0x9c3fa60>:
    /home/foo/.rvm/gems/ruby-1.9.3-p392/gems/sinatra-websocket-0.2.1/lib/sinatra-websocket.rb:92:in `initialize'
    /home/foo/.rvm/gems/ruby-1.9.3-p392/gems/sinatra-websocket-0.2.1/lib/sinatra-websocket.rb:60:in `new'
    /home/foo/.rvm/gems/ruby-1.9.3-p392/gems/sinatra-websocket-0.2.1/lib/sinatra-websocket.rb:12:in `from_env'
    /home/foo/.rvm/gems/ruby-1.9.3-p392/gems/sinatra-websocket-0.2.1/lib/sinatra-websocket/ext/sinatra/request.rb:17:in `websocket'
    /home/foo/Git/bar/main.rb:104:in `block in <top (required)>'

My rainbows.conf:

Rainbows! do
    use :EventMachine
    worker_connections 400
end

worker_processes 4

d4l3k avatar Mar 16 '13 20:03 d4l3k

the same as @d4l3k

dulumao avatar Sep 23 '13 08:09 dulumao