aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-02-29 22:44:02 -0300
committerRafael França <rafaelmfranca@gmail.com>2016-02-29 22:44:02 -0300
commitd4cebf1a7e9202249d0b4103253fcf5a2289f0c7 (patch)
treeaebd892d7f1ecca4bf093f0d723806bfc8561c67
parentb04d07337fd7bc17e88500e9d6bcd361885a45f8 (diff)
parent242abf88505f8113ec68f8c98cdea91421f3d4f0 (diff)
downloadrails-d4cebf1a7e9202249d0b4103253fcf5a2289f0c7.tar.gz
rails-d4cebf1a7e9202249d0b4103253fcf5a2289f0c7.tar.bz2
rails-d4cebf1a7e9202249d0b4103253fcf5a2289f0c7.zip
Merge pull request #23968 from bouk/improve-cable-docs
Remove inconsistency in the Action Cable README
-rw-r--r--actioncable/README.md8
1 files changed, 2 insertions, 6 deletions
diff --git a/actioncable/README.md b/actioncable/README.md
index bb15ad3c70..595830feb0 100644
--- a/actioncable/README.md
+++ b/actioncable/README.md
@@ -412,7 +412,7 @@ The above will start a cable server on port 28080.
### In app
-If you are using a threaded server like Puma or Thin, the current implementation of Action Cable can run side-along with your Rails application. For example, to listen for WebSocket requests on `/cable`, mount the server at that path:
+If you are using a server that supports the [Rack socket hijacking API](http://www.rubydoc.info/github/rack/rack/file/SPEC#Hijacking), Action Cable can run alongside your Rails application. For example, to listen for WebSocket requests on `/cable`, mount the server at that path:
```ruby
# config/routes.rb
@@ -445,12 +445,8 @@ connection management is handled internally by utilizing Ruby’s native thread
support, which means you can use all your regular Rails models with no problems
as long as you haven’t committed any thread-safety sins.
-But this also means that Action Cable needs to run in its own server process.
-So you'll have one set of server processes for your normal web work, and another
-set of server processes for the Action Cable.
-
The Action Cable server does _not_ need to be a multi-threaded application server.
-This is because Action Cable uses the [Rack socket hijacking API](http://old.blog.phusion.nl/2013/01/23/the-new-rack-socket-hijacking-api/)
+This is because Action Cable uses the [Rack socket hijacking API](http://www.rubydoc.info/github/rack/rack/file/SPEC#Hijacking)
to take over control of connections from the application server. Action Cable
then manages connections internally, in a multithreaded manner, regardless of
whether the application server is multi-threaded or not. So Action Cable works