aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2015-11-04 17:22:48 -0600
committerPratik Naik <pratiknaik@gmail.com>2015-11-04 17:22:48 -0600
commitcb4ef80f20a23e9c42876b039d8af7d02fd416fb (patch)
tree5e8c2eaf367a9ee395f1213624ad42a08cbf4f06 /README.md
parentee06b33e19019e771f0305a40b15885c22499a8b (diff)
parent7c1631fa48b8862f37d1026b4f0cf1061dd6947a (diff)
downloadrails-cb4ef80f20a23e9c42876b039d8af7d02fd416fb.tar.gz
rails-cb4ef80f20a23e9c42876b039d8af7d02fd416fb.tar.bz2
rails-cb4ef80f20a23e9c42876b039d8af7d02fd416fb.zip
Merge branch 'master' into subscription-rejection
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index 798ca5292f..94c40f079f 100644
--- a/README.md
+++ b/README.md
@@ -63,6 +63,8 @@ module ApplicationCable
end
end
```
+Here `identified_by` is a connection identifier that can be used to find the specific connection again or later.
+Note that anything marked as an identifier will automatically create a delegate by the same name on any channel instances created off the connection.
Then you should define your `ApplicationCable::Channel` class in Ruby. This is the place where you put
shared logic between your channels.
@@ -317,7 +319,7 @@ application. The recommended basic setup is as follows:
```ruby
# cable/config.ru
-require ::File.expand_path('../../config/environment', __FILE__)
+require ::File.expand_path('../../config/environment', __FILE__)
Rails.application.eager_load!
require 'action_cable/process/logging'
@@ -328,7 +330,7 @@ run ActionCable.server
Then you start the server using a binstub in bin/cable ala:
```
#!/bin/bash
-bundle exec puma -p 28080 cable/config.ru
+bundle exec puma -p 28080 cable/config.ru
```
The above will start a cable server on port 28080. Remember to point your client-side setup against that using something like: