You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe we need to introduce a server configuration class that can be overridden, e.g. to set reasonable defaults or change default behaviour. For example, the executor, and the pubsub adapter instance, etc.
I wanted to use something other than an adapter under ActionCable::SubscriptionAdapter::.
I added this line exactly to quick-solve this problem. You can use any class name is the value now. But having something like the following would be great, too:
# Pass any objectconfig.action_cable.pubsub_adapter=MyAdapter.new# Pass a class nameconfig.action_cable.pubsub_adapter="MyAdapter"# Pass an identifier with options (current official behaviour)config.action_cable.pubsub_adapter=:redis,url: "redis://localhost:50051"
Actually, I don't really understand why do we have cable.yml at all 🤷♂️
I wonder if we can make this easier to configure?
I wanted to use something other than an adapter under
ActionCable::SubscriptionAdapter::
.actioncable-next/lib/action_cable/server/configuration.rb
Line 44 in f9c1c22
I don't have much idea about what could be better.
The text was updated successfully, but these errors were encountered: