firehoseio / firehose

Build realtime Ruby web applications. Created by the fine folks at Poll Everywhere.
http://firehose.io/
MIT License
727 stars 72 forks source link

Passenger Support? #50

Closed supairish closed 8 years ago

supairish commented 8 years ago

Hello! I see in the docs that Thin and Rainbows is supported. I was wondering if anyone has had success with using Passenger? It would seem they support websockets as per (https://github.com/phusion/passenger-ruby-websocket-demo) but figured I'd ask if anyone here has tried before I go down a possibly futile rabbit hole :-)

Cheers

thoughtless commented 8 years ago

The main question is if they support EventMachine. I haven't run EventMachine with Passenger, so I couldn't say.

bradgessler commented 8 years ago

Firehose is just a Rack app: https://github.com/firehoseio/firehose/blob/message-buffer/lib/firehose/rack/app.rb. We haven't tested EM yet on Phusion, but if you want to give it a try just run the following in your config.ru:

require "firehose"
run Firehose::Rack::App.new

(From https://github.com/firehoseio/firehose/blob/message-buffer/lib/firehose/rack/app.rb)

I'm going to close this issue since we don't have plans to support Phusion, but I do welcome community contributions to documentation either in the form of comments to this issue or PR to our README.