From a381add01f17aa6331ba4ef18006a9afc48b7476 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Tue, 22 Dec 2015 11:11:47 +0100 Subject: [ci skip] Steal `ActionCable.server` mounting from routes template. Mounting it as prescribed here: https://github.com/rails/rails/blob/0d1d50c2db40ea1a9d3bebfb0c35da43bbd4d27f/railties/lib/rails/generators/rails/app/templates/config/routes.rb#L5 --- actioncable/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actioncable') diff --git a/actioncable/README.md b/actioncable/README.md index 42fbc755ae..c7420d48bc 100644 --- a/actioncable/README.md +++ b/actioncable/README.md @@ -399,12 +399,12 @@ The above will start a cable server on port 28080. Remember to point your client ### In app -If you are using a threaded server like Puma or Thin, the current implementation of ActionCable can run side-along with your Rails application. For example, to listen for WebSocket requests on `/cable`, match requests on that path: +If you are using a threaded server like Puma or Thin, the current implementation of ActionCable can run side-along with your Rails application. For example, to listen for WebSocket requests on `/cable`, mount the server at that path: ```ruby # config/routes.rb Example::Application.routes.draw do - match "/cable", :to => ActionCable.server, via: [:get, :post] + mount ActionCable.server => '/cable' end ``` -- cgit v1.2.3