ActionCable

Does Hatchbox support ActionCable?

Yep! We support ActionCable with both Passenger and Puma configurations.

You'll need to make sure your domains are added to the allowed request origins list otherwise ActionCable won't connect in production. https://guides.rubyonrails.org/action_cable_overview.html#allowed-request-origins

You'll also need to use the redis adapter for ActionCable to make sure that all your clients can talk to each other. https://guides.rubyonrails.org/action_cable_overview.html#subscription-adapter

Can I use AnyCable instead?

Yes, but we don't officially support it just yet. You'll need to run the gRPC and WebSocket servers as their own processes and restart them during deployments as necessary.

Last updated