aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/CHANGELOG.md
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2019-02-13 00:44:02 +0100
committerGitHub <noreply@github.com>2019-02-13 00:44:02 +0100
commitbc2954d02b7bae0c1ae3a9a647d5cf6699c25b51 (patch)
treeacd23f3be831673cb04a49ef847aff6876c47c57 /actioncable/CHANGELOG.md
parent7432e251873690234d0d288e8eb009fbee80b635 (diff)
parent3cd69fa2c025da1cc45b1b9b43b227cceb025837 (diff)
downloadrails-bc2954d02b7bae0c1ae3a9a647d5cf6699c25b51.tar.gz
rails-bc2954d02b7bae0c1ae3a9a647d5cf6699c25b51.tar.bz2
rails-bc2954d02b7bae0c1ae3a9a647d5cf6699c25b51.zip
Merge pull request #34714 from palkan/chore/refactor-action-cable-server-config
Action Cable: allow multiple instances of Server::Base with different configs
Diffstat (limited to 'actioncable/CHANGELOG.md')
-rw-r--r--actioncable/CHANGELOG.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/actioncable/CHANGELOG.md b/actioncable/CHANGELOG.md
index 42edbd6954..3ce35edbb8 100644
--- a/actioncable/CHANGELOG.md
+++ b/actioncable/CHANGELOG.md
@@ -1,3 +1,26 @@
+* Allow passing custom configuration to `ActionCable::Server::Base`.
+
+ You can now create a standalone Action Cable server with a custom configuration
+ (e.g. to run it in isolation from the default one):
+
+ ```ruby
+ config = ActionCable::Server::Configuration.new
+ config.cable = { adapter: "redis", channel_prefix: "custom_" }
+
+ CUSTOM_CABLE = ActionCable::Server::Base.new(config: config)
+ ```
+
+ Then you can mount it in the `routes.rb` file:
+
+ ```ruby
+ Rails.application.routes.draw do
+ mount CUSTOM_CABLE => "/custom_cable"
+ # ...
+ end
+ ```
+
+ *Vladimir Dementyev*
+
* Add `:action_cable_connection` and `:action_cable_channel` load hooks.
You can use them to extend `ActionCable::Connection::Base` and `ActionCable::Channel::Base`