-
-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with ActionCable #298
Comments
It is possible, but I don't think it make sense to implement the Rack hijack API in Thin. The whole concept is based on blocking socket I/O and Thin uses non-blocking I/O. So I would recommend you use another server if you need Rack hijack support. The way to do it w/ Thin would be to use https://github.com/macournoyer/thin_async. |
I just tested this out, and ActionCable does work w/ Thin! w/ a few extra configs: In your gem 'faye-websocket'
gem 'thin' Create a Rails.application.config.action_cable.use_faye = true
Faye::WebSocket.load_adapter 'thin' |
@macournoyer My app is crashing when |
@malonehedges what is the error message? Maybe you forgot to add the |
|
@macournoyer I actually have the same error as @malonehedges . In rails 5.0 everything works right, but in rails 5.1 I have the same error I've checked |
ActionCable from rails 5 is not working on thin. Whole problem is investigated and described here rails/rails#23696 . My question is - is there possibility for Thin to enable rack hijack support?
The text was updated successfully, but these errors were encountered: