All threads / Deploy ActionCable Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Deploy ActionCable Discussion

Chris Oliver asked in General

Could you explain these two lines please:

passenger_app_group_name your_app_websocket;
passenger_force_max_concurrent_requests_per_process 0;

Roughly the first line tells Passenger to group app the websocket connections together for this app (in case you had multiple websockets apps on the same server) and the second line is saying that you can have an unlimited number of clients connect through websockets.

More info here: https://www.phusionpassenge...

belajar program ·

how to get your_app_websocket?

Ali Ahmed ·

Hey Chris nice article.

I am using Puma application server with nginx but the problem I am facing is that Action Cable works fine without ssl but I don't know what I have to do to get it work with SSL I get this message on browser.
WebSocket connection to 'wss://xxx.xxx/cable' failed: WebSocket is closed before the connection is established.

I have setup the config file in production.rb as well

config.action_cable.url = 'wss://xxx.xxx/cable'
config.action_cable.allowed_request_origins = [
'http://www.xxx.xxx', 'http://xxx.xxx', 'https://www.xxx.xxx', 'https://xxx.xxx'
]

Still getting error. For SSL I have tried your article for Free SSL through let's encrypt. SSL working good but I don't understand this situation. Also for redis connection I have used redis labs service, I don't want extra redis burden on my server that's why.

Any Suggestions?

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 34,674+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.