aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-12-18 13:15:52 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-12-18 13:15:52 +0100
commit21efa5218b40836a37b0517cc8db4feadb021c09 (patch)
treea6049dcba580e7b08bad4a06207b98ef9cd5c0d6 /actioncable
parentea4f0e2baba8653b03fba154357842933cf7b778 (diff)
downloadrails-21efa5218b40836a37b0517cc8db4feadb021c09.tar.gz
rails-21efa5218b40836a37b0517cc8db4feadb021c09.tar.bz2
rails-21efa5218b40836a37b0517cc8db4feadb021c09.zip
Now available in action_cable
Diffstat (limited to 'actioncable')
-rw-r--r--actioncable/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/actioncable/README.md b/actioncable/README.md
index 4262046482..577baacb88 100644
--- a/actioncable/README.md
+++ b/actioncable/README.md
@@ -86,8 +86,8 @@ potentially disconnect them all if the user is deleted or deauthorized).
The client-side needs to setup a consumer instance of this connection. That's done like so:
```coffeescript
-# app/assets/javascripts/application_cable.coffee
-#= require cable
+# app/assets/javascripts/cable.coffee
+#= require action_cable
@App = {}
App.cable = Cable.createConsumer("ws://cable.example.com")