Before Rails 6, Action Cable server used default configuration on boot up, unless custom configuration is provided explicitly.
Custom configuration can be mentioned in either
as shown below.
In some cases, we need another Action Cable server running separately from application with a different set of configuration.
Problem is that both approaches mentioned earlier set Action Cable server configuration on application boot up. This configuration can not be changed for the second server.
Rails 6 has added
a provision to pass
Rails 6 allows us
object as an option
a new Action Cable server.
For more details on Action Cable configurations, head to Action Cable docs.
Here’s the relevant pull request for this change.